Creating an API token
- Open Account > API in the panel.
- Click New token.
- Choose a descriptive name and scope (for example, a single project).
- Store the generated token in a secure secrets manager.
Using tokens with the API
Include the token in the Authorization header:
curl https://api.xenoncloud.org/v1/instances \
-H "Authorization: Bearer <YOUR_TOKEN>"
Rotating tokens
Rotate tokens periodically and after suspected compromise:
- Create a new token.
- Update applications to use the new token.
- Revoke the old token once traffic has moved.