Service Account

Get API tokens for all service accounts in an org

Changed on

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

Scopes

OAuth 2.0 scopes required: read:service-accounts-tokens:admin

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

Path parameters

orgIdstring required

Your organization is identified by a Unique ID. You get your organization ID and organization API key simultaneously.

Query parameters

tokenLabelstring

Optional filter to search for tokens by label.

Response

Returned if the request is successful.

idstring required

The token ID generated in the token-service.

labelstring required

The token label.

status'ALLOWED' required

The token status. Service account tokens are ALLOWED or EXPIRED.

createdAtstring required

An ISO-8601 formatted timestamp representing the time when a token was created.

expiresAtstring

An ISO-8601 formatted timestamp representing the time when a token expires.

lastActiveAtstring

An ISO-8601 formatted timestamp representing the time when a token was last used.

scopesstring[]

Array of scopes associated with the token. An empty array indicates an unscoped API token.

Changes