Skip to main content
The Trakkr API uses API key authentication to secure your requests. All API requests must include your API key in the Authorization header.

Getting Your API Key

  1. Visit trakkr.ai/api-keys
  2. Sign in to your account
  3. Generate a new API key
  4. 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 the Authorization 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

Status Code: 401 Unauthorized

Invalid API Key

Status Code: 403 Forbidden

Authentication Error

Status Code: 500 Internal Server Error

Security Best Practices

  1. Use HTTPS: Always make requests over HTTPS
  2. 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.