Authentication
How to authenticate requests to the Traceway API.
Authentication
API keys
Every Traceway project has one or more API keys. Keys are scoped to a single project — a key from Project A cannot submit reports to Project B.
Getting your API key
- Sign in at traceway.dev
- Navigate to your organization and open your project
- Go to Project Settings and select the SDK or API tab
- Copy the API key shown
Sending the key
[PLACEHOLDER: Confirm the exact header name and format. Two likely options:
Option A — Bearer token:
Authorization: Bearer YOUR_API_KEY
Option B — Custom header:
X-API-Key: YOUR_API_KEY
Confirm from the API implementation which is correct and remove the other option.]
Key rotation
[PLACEHOLDER: Document how to rotate keys — whether the dashboard supports generating a new key, whether old keys are immediately invalidated, and what the recommended zero-downtime rotation process is.]
Error responses
| Status | Error | Cause |
|---|---|---|
| 401 | unauthorized | No API key provided |
| 401 | invalid_key | API key is not recognised |
| 403 | forbidden | Key is valid but does not have access to the requested resource |
[PLACEHOLDER: Confirm these status codes and error strings match the actual API implementation.]