Authentication
How to authenticate with the Chaser API.
API keys
All public API requests (/v1/sessions, /v1/usage, /v1/sessions/:id/*) are authenticated via Bearer token:
The API key identifies a workspace. All sessions and usage are scoped to that workspace.
Cookie authentication
Dashboard-only endpoints (/v1/keys/*, /v1/billing/topup, /v1/audit/stream) use cookie authentication from your browser session. These endpoints are not accessible via API key.
Key prefixes
Error responses
Security
- Never commit keys to version control. Use environment variables.
- Rotate keys periodically. Use the dashboard’s rotate function to create a new key and retire the old one.
- Use separate keys per environment. Production, staging, and CI should each have their own key.