Skip to main content

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:

  1. Navigate to Settings in the top navigation bar.
  2. Scroll down to the API Tokens section.
  3. Click Create API Token.
  4. Provide a Token Name and an optional Description to help identify the token's purpose.
  5. 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.