Using Your API Key
Include your API key in theX-API-Key header with every request:
Code Examples
Error Responses
Missing API Key
Invalid API Key
Insufficient Credits
Best Practices
Never expose your API key
Never expose your API key
Don’t include your API key in client-side code or public repositories
Use environment variables
Use environment variables
Store your API key in environment variables, not in code
Rotate keys periodically
Rotate keys periodically
If you suspect unauthorized access, rotate your keys immediately
Monitor usage
Monitor usage
Check your dashboard regularly to detect anomalies