API Keys
All API requests require authentication using your Costrace API key. You can find your API key in the dashboard.Header Format
Include your API key in theAuthorization header:
Example Request
Key Management
Getting Your Key
- Sign up at costrace.dev/auth
- Navigate to your dashboard
- Copy your API key from the settings or API keys section
Security Best Practices
Good:Rotating Keys
If your API key is compromised:- Generate a new key in the dashboard
- Update your application environment variables
- Revoke the old key
Rate Limits
API keys are subject to rate limits based on your plan:
Rate limit headers are included in API responses: