Create an API key
Open API key settings
Go to Settings > API Keys in the Traversal web app.
Create a new key
Click Add API Key, give it a descriptive name (e.g.,
ci-pipeline or local-dev), and confirm.Use the key
Send the key as a bearer token in theAuthorization header:
member role, but a few (e.g., GET /v1/sessions) require admin — see the per-endpoint Required roles table in Sessions API.
| Condition | Response |
|---|---|
| Missing, invalid, or revoked token | 401 Unauthorized |
| V1 API not enabled for the organization, or insufficient role for the endpoint | 403 Forbidden |
Key hygiene
- Name keys descriptively so you can identify which system uses them.
- Use separate keys per environment or service (e.g., one for CI, one for a local script). This limits blast radius and makes revocation surgical.
- Rotate regularly and whenever someone with access leaves the team.
- Never commit keys to source control. Use environment variables or a secret manager.
Revoke a key
If a key is lost, leaked, or no longer needed, revoke it from Settings > API Keys. Revocation takes effect immediately — subsequent requests using the key return401 Unauthorized.