---
title: "Get all service account API tokens in an org"
method: GET
path: "/orgs/{orgId}/service-accounts/{accountId}/api-tokens"
tags: ["API Token"]
---

# Get all service account API tokens in an org

`GET /orgs/{orgId}/service-accounts/{accountId}/api-tokens`

Retrieves API tokens for a specific service account within an organization.

#### Scopes
**[Authorization scopes](/cloud/admin/scopes/) required:** `read:service-accounts-tokens:admin`

## Path parameters

- `orgId` string, required
- `accountId` string, required

## Query parameters

- `tokenLabel` string

## Response `200`

Returned if the request is successful.

- ApiToken[] — List of API tokens for the service account
  - `id` string, required — The token ID generated in the token-service.
  - `label` string, required — The token label.
  - `status` 'ALLOWED' | 'BLOCKED', required — The token status.
  - `createdAt` string, required — An ISO-8601 formatted timestamp representing the time when a token was created.
  - `expiresAt` string — An ISO-8601 formatted timestamp representing the time when a token expires.
  - `lastActiveAt` string — An ISO-8601 formatted timestamp representing the time when a token was last used.
  - `user` ApiTokenUser, required — The user associated with the token.
    - `id` string, required — User ID of the API token user.
    - `orgId` string — Org ID of the API token user.
    - `name` string, required — Name of the API token user.
    - `email` string, required — Email of the API token user.
  - `scopes` string[] — Array of scopes associated with the token. An empty array indicates an unscoped API token.

## Other responses

- `400` — Returned if request is not in correct format.
- `403` — Returned if the user does not have permission to view service account API tokens.
- `404` — Returned if the service account is not found.
- `500` — Internal Error

---

[API](https://skmtc.net/atlassian/apis/api-access.md) · [All operations](https://skmtc.net/atlassian/apis/api-access/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/api-access/revisions/412d18f78d91/schema)
