Getting Your API Key
- Visit trakkr.ai/api-keys
- Sign in to your account
- Generate a new API key
- Copy the key and keep it secure
Keep your API key secure! Never share your API key publicly or commit it to version control.
Using Your API Key
Include your API key in theAuthorization
header of all requests using the Bearer token format:
Example Request
API Key Format
Your API key should be in the following format:Error Responses
If authentication fails, you’ll receive one of these error responses:Missing API Key
401 Unauthorized
Invalid API Key
403 Forbidden
Authentication Error
500 Internal Server Error
Security Best Practices
- Use HTTPS: Always make requests over HTTPS
- Keep keys secure: Store API keys in environment variables or secure key management systems
Environment Variables
Store your API key in environment variables:Need to regenerate your key? Visit your API settings to create a new key and invalidate the old one.