Skip to main content

Create API Token

Generate new API tokens for authentication using the create_api_token() method.

Example

create_api_token() takes an ApiTokenRequest (not a plain dict):

Response Structure

The full token value is only returned here, at creation time. Copy and store it securely — you can’t retrieve it again later.

Usage Notes

  • The full token is shown only at creation — store it securely.
  • Use a clear description so you can identify the token later.
  • Manage tokens in the Mira Console.