List every API token of the current organization: organization tokens and the members' personal tokens, valid and expired, and the ones revoked or disabled in the last 30 days, newest first unless sort says otherwise. Administrators and viewers can use it. The secret is never returned. Each token says whether its lifetime exceeds the organization policy (lifetime_over_policy) and when the policy would stop it (policy_expires_at), the networks it is accepted from and the address of its last use.
Parameters
Number of items per page, from 1 to 100
Cursor of the next page from next_cursor
Only tokens of this kind
personalorganizationOnly tokens whose name, member or secret hint contains this text, ignoring case
Only tokens in this state: usable (active, limited or inactive), expired (by their own expiry or by the policy limit applied to existing tokens), revoked (by a person or replaced), or disabled (revoked by the periodic check for lack of use)
usableexpiredrevokeddisabledOnly tokens bound to this member (the owner of a personal token, the responsible administrator of an organization token)
Order of the list: created (newest first, the default), last_used_desc (most recently used first, never used last) or last_used_asc (never used first, then the longest unused). A cursor continues only the list it was taken from.
createdlast_used_desc last_used_asc Only usable tokens whose lifetime exceeds the longest lifetime of the organization policy
Responses
OK
APITokenPageResponse · 4 fields
True when another page follows. The list ends when it is false.
30 fields
personalorganizationBuilt-in role the token was issued with. It never grows.
adminvieweruserCustom role the token holds on top of its built-in role.
2 fields
The widest built-in role whose permissions the token has now. Null when it does not authenticate.
adminvieweruserWhat the token may do now: the permissions of its roles that the member behind the token also has. Empty when it does not authenticate.
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:readactive works with all permissions of its roles. Limited works with fewer because the bound member has fewer permissions now. Inactive does not work because the bound member is not a member any more (member_missing) or, for an organization token, the responsible administrator lost read access (member_without_access).
activelimitedinactiveexpiredrevokedWhy a token is limited, inactive, expired or revoked. On an expired token, member_missing or member_without_access says a new secret would be inactive too, and policy_cap says the longest lifetime of the organization policy, applied to existing tokens, ended it. unused on a revoked token says the periodic check disabled it because it was not used within the days the policy allows. Such a token can't come back, create a new one.
role_lowered member_missing member_without_access revokedrotatedunusedpolicy_cap Prefix and last characters of the secret, to recognize the token.
2 fields
Identity ID. Null when the identity was deleted.
2 fields
Identity ID. Null when the identity was deleted.
When the token expires by its own terms, as issued.
When the longest lifetime of the organization policy would end the token (created_at plus the limit for this token), present only when the lifetime exceeds the policy. The token stops at this moment only while the policy applies the limit to existing tokens (cap_existing). Otherwise it is informational.
The lifetime of the token exceeds the longest lifetime of the organization policy.
The token may make the security changes that the console confirms with a second factor. Set when the token is issued and kept when its secret is replaced.
The personal token may administer the installation within the installation rights its owner held at issuance. Set when the token is issued and kept when its secret is replaced.
The token may list, issue, replace, take over and revoke API tokens within its own permissions and rights. Set when the token is issued and kept when its secret is replaced.
The token may call GET /identities/{id}/credentials within its owner's rights. Set when the token is issued and kept when its secret is replaced.
The token connects an AI agent through POST /mcp. Set when the token is issued and kept when its secret is replaced. It gives no right, and without allow_credentials_read the token gets no SSH certificate.
For an agent token, the key that names the connection in the agent's client. It stays the same when the secret is replaced. Null for every other token.
For an agent token, the first moment the MCP server at POST /mcp answered it successfully. Null until then and for every other token. A request that only carried the secret, without a successful MCP answer, does not set it. A new secret starts with null.
Networks (CIDR) the token is accepted from. Empty means every network.
API token that issued this token or replaced its secret. Revoking that token revokes this one too. Null when a person issued it in the console.
When the token last made a request, recorded at most once a minute.
Client address of the last recorded use, as the backend saw it: the address the trusted proxies forwarded, or the direct peer when no trusted proxy is configured.
2 fields
Identity ID. Null when the identity was deleted.
The token that replaced this one when its secret was rotated.
Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.
Full number of items that match the request, present only when the list counts them. It is never the size of the page.
Bad Request: limit out of range, unknown kind, search longer than 200 characters or a cursor this list cannot continue (code pagination.cursor_invalid)
Unauthorized: no console session or API token
Forbidden: the role does not allow it, or the request was made with an API token issued without allow_token_management (code auth.api_token_not_allowed, details.reason=api_token_management_not_allowed). The personal routes also refuse an organization token (details.reason=api_token_personal_only).
Common errors: 429 504. They mean the same for every operation, see Errors.