API Tokens

List API tokens

Returns all API tokens for the current user. Token hashes are never exposed. Requires admin role.

Note: API tokens cannot list other API tokens.

get/api/api-tokens

Response

Array of token metadata.

idinteger required
namestring required
scope'read-only' | 'deploy-only' | 'full-admin' required
user_idinteger required
created_atinteger required

Unix timestamp (seconds).

expires_atinteger nullable

Unix timestamp (seconds) or null for no expiry.

revoked_atinteger nullable
last_used_atinteger nullable

Changes

Changed in 2 of the 36 revisions of this API.24

    • removed the ADMIRAL_REQUIRED enum value from the code response property for the response status 403

      response-property-enum-value-removed

    • removed the ADMIRAL_REQUIRED enum value from the code response property for the response status 500

      response-property-enum-value-removed

    • added the new PAID_REQUIRED enum value to the code response property for the response status 403

      response-property-enum-value-added

    • added the new PAID_REQUIRED enum value to the code response property for the response status 500

      response-property-enum-value-added

    • removed the PRO_REQUIRED enum value from the code response property for the response status 403

      response-property-enum-value-removed

    • removed the PRO_REQUIRED enum value from the code response property for the response status 500

      response-property-enum-value-removed