Authorization header of every request.
Creating an API Key
- Navigate to your team’s Settings page
- Click API Keys in the sidebar
- Click Create API Key
- Enter a name for the key (e.g., “CI/CD Pipeline” or “BI Dashboard”)
- Select the project the key should access
- Click Create API Key
Key Format
API keys follow this format:dtk_live_a1b2c3d4e5f6...
Only the first few characters (dtk_live_a1b2...) are stored as a prefix for identification in the dashboard.
Using Your API Key
Include the key in theAuthorization header with the Bearer prefix:
Example with JavaScript
Example with Python
Key Security
- Keys are hashed with SHA-256 before storage. DevTune never stores the raw key.
- Each key is scoped to exactly one project. It cannot access data from other projects.
- Requests with an invalid, expired, or revoked key receive a generic
401 Unauthorizedresponse.
CORS Support
The API supports Cross-Origin Resource Sharing (CORS) for browser-based integrations. Requests from any origin are accepted when a valid API key is provided.Revoking a Key
To revoke an API key:- Go to Settings > API Keys
- Find the key in the list
- Click the revoke button (trash icon)
- Confirm the revocation
Who Can Manage API Keys
Only team members with the settings.manage permission can create or revoke API keys. This typically includes team owners and admins.Related Documentation
- Rate Limits - Request limits by plan tier
- Error Handling - Common authentication errors