Create an API key
1
Open API key settings
Go to Settings > API Keys in the Traversal web app.
2
Create a new key
Click Add API Key, give it a descriptive name (e.g.,
ci-pipeline or local-dev), and confirm.3
Copy and store the key
Traversal displays the key in a modal. This is your only chance to copy it — once you dismiss the modal, the key cannot be retrieved again.Store it in a secure secret manager (1Password, AWS Secrets Manager, Vault, etc.) before closing the dialog.
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.
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.