Authorization header of every request.
Keys can either:
- keep the default all scopes access for that project
- or be narrowed to specific endpoint scopes such as
visibility.read,actions.read,intelligence.read,webhooks.read, andwebhooks.write
Creating an API Key
- Navigate to your team account
- Open API Keys in the account 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.
- Keys with no explicit scope restrictions retain full access to that project. Scoped keys can only call endpoints and MCP tools covered by their configured scopes.
- Requests with an invalid, expired, or revoked key receive a generic
401 Unauthorizedresponse. - Requests with a valid key that lacks the required endpoint or MCP tool scope receive
403 Forbidden, so permission errors stay distinct from authentication failures.
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 API Keys in the account sidebar
- 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.Related Documentation
- Rate Limits - Request limits by plan tier
- Error Handling - Common authentication errors