API Tokens

List API tokens

Changed on

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

Request

  • Base URL
    https://localhost:1852
  • URL
    https://localhost:1852/api/api-tokens
  • Auth
    HTTP bearer

Response

Array of token metadata.

idinteger required
namestring required
scope'observe-only' | '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

    • warning

      added the new observe-only enum value to the / response property for the response status

    • info

      removed the ADMIRAL_REQUIRED enum value from the response property for the response status

    • info

      removed the ADMIRAL_REQUIRED enum value from the response property for the response status