API Key Format
sk_= Secret Key prefixlive_= Live mode (production)- Followed by 32+ random characters
Using Your API Key
Include your key in theAuthorization header:
Security Best Practices
- Never commit API keys to version control
- Use environment variables to store keys
- Rotate keys regularly if you suspect a leak
- Use different keys for development and production
- Limit exposure - only your backend should use the API key
Environment Variable Example
Rate Limiting
- 100 requests per minute per API key
- Rate limit headers are included in responses:
Errors
| Status | Error | Solution |
|---|---|---|
| 401 | Invalid or missing API key | Check your Authorization header |
| 403 | PRO plan required | Upgrade your subscription |
| 429 | Rate limit exceeded | Wait and retry with backoff |