List Tokens

List organization API tokens. Secrets are last-4 only.

MethodGET
/api/v2/tokens

Lists organization API tokens. Secrets are last-4 only. Permission: tokens.

SDK tokens.list() takes no args. HTTP accepts optional ?limit= to slice the list.

Query Parameters

NameTypeDescription
limitintegerOptional slice. When the org has more tokens than limit, has_more is true.

Response Fields

FieldTypeDescription
object"list"Discriminator. Always list.
has_morebooleantrue when limit truncated the list.
dataarrayToken summaries: id, name, last4, permissions, createdAt.

Errors

StatusnameWhen
401missing_api_keyMissing or invalid bearer token
403missing_permissionToken lacks the tokens permission