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

# Get API tokens for all service accounts in an org

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

## Request

- Base URL: `https://api.atlassian.com/admin/api-access/v1`
- URL: `https://api.atlassian.com/admin/api-access/v1/orgs/{orgId}/service-accounts/api-tokens`
- Auth: none declared

Retrieves API tokens belonging to service accounts in the specified organization.

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

## Path parameters

- `orgId` string, required

## Query parameters

- `tokenLabel` string

## Response `200`

Returned if the request is successful.

- ServiceAccountApiToken[]: List of API tokens for service accounts in the organization.
  - `id` string, required: The token ID generated in the token-service.
  - `label` string, required: The token label.
  - `status` 'ALLOWED', required: The token status. Service account tokens are ALLOWED or EXPIRED.
  - `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 organization is not found.
- `500`: Internal Error

## Changes

- **2026-09-19** `eb9c7a84b535`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/atlassian/apis/api-access/changes/orgs/:orgId/service-accounts/api-tokens/get.md)

---

[API](https://skmtc.dev/atlassian/apis/api-access.md) - [All operations](https://skmtc.dev/atlassian/apis/api-access/llms.txt) - [OpenAPI document](https://skmtc.dev/atlassian/apis/api-access/revisions/52842bc49df9?raw)
