v1

latestOpenAPI 3.0.32026-07-13182371.7 KB
API Token

Get all service account API tokens in an org

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

Scopes

Authorization scopes required: read:service-accounts-tokens:admin

get/orgs/{orgId}/service-accounts/{accountId}/api-tokens

Path parameters

orgIdstring required

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

accountIdstring required

ID for the service account whose API tokens you want to retrieve.

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' | 'BLOCKED' required

The token status.

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.