API Keys
API keys are used to identify your project and authenticate requests. Each key is scoped to a single project.Using Your API Key
Include your API key in thex-api-key header with every request:
Key Format
API keys follow this format:tk_- Thunder key prefixlive_ortest_- Environment indicator- Random alphanumeric string
Error Responses
Missing API Key
If you forget to include thex-api-key header:
401 Unauthorized
Invalid API Key
If your API key is incorrect or has been revoked:401 Unauthorized
Rate Limiting
The API enforces rate limits to ensure fair usage:| Limit | Value |
|---|---|
| Requests per second | 1,000 |
| Max messages per ingest request | 10,000 |
429 Too Many Requests response. Implement exponential backoff in your integration to handle rate limits gracefully.
Security Best Practices
Store keys securely
Store keys securely
Use environment variables or a secrets manager. Never hardcode API keys in your source code.
Use server-side only
Use server-side only
Make API calls from your backend, not from browsers or mobile apps where keys could be extracted.
Rotate keys periodically
Rotate keys periodically
Create new keys and revoke old ones on a regular schedule. This limits the impact if a key is compromised.
Use separate keys per environment
Use separate keys per environment
Use different API keys for development, staging, and production to maintain isolation.