Create an API Token
API Tokens are long-lived refresh tokens used for authenticating the Invariant CLI, SDK, or direct API calls for automation.
To create an API Token using the Invariant UI:
- Navigate to
Settings
in the top navigation bar. - Scroll down to the API Tokens section.
- Click Create API Token.
- Provide a Token Name and an optional Description to help identify the token's purpose.
- Click Create API Token.
Important
Copy the generated API Token immediately and store it securely (e.g., in a secret manager). It will not be shown again.
See the Authentication Introduction for details on using API tokens.