---
title: "List Service Accounts"
method: GET
path: "/organizations/{organizationId}/service-accounts"
tags: ["Retrieve Service Accounts"]
---

# List Service Accounts

`GET /organizations/{organizationId}/service-accounts`

## Request

- Base URL: `https://mixpanel.com/api/query`
- URL: `https://mixpanel.com/api/query/organizations/{organizationId}/service-accounts`
- Auth: one of:
  - HTTP basic
  - HTTP basic
- TypeScript: <https://skmtc.dev/mixpanel/apis/query-api/docs/organizations/:organizationId/service-accounts/get.ts> (a function with typed inputs; its response is checked against the schema)

Return a list of all service accounts for your organization

## Response `200`

Success

- ListServiceAccountsResponse
  - `results` ServiceAccountRead[]
    - `id` integer: The unique identifier for this service account
    - `username` string: The username of the service account
    - `last_used` string, date-time: The date/time this service account was last used for authentication
    - `expires` string, date-time: The date/time this service account will expire
    - `creator` integer: The Mixpanel user id that created this service account
    - `created` string, date-time: The date/time this service account was created
    - `user` integer: The Mixpanel user id that this serivce account represents. This is only used internally and is safe to ignore.
  - `status` 'ok': "ok" if the request succeeded, "error" otherwise.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/mixpanel/apis/query-api.md) - [All operations](https://skmtc.dev/mixpanel/apis/query-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mixpanel/apis/query-api/revisions/f442da95252a?raw)
