Error response format
string
Machine-readable error code. Use this for programmatic error handling.
string
Human-readable description of what went wrong.
HTTP status codes
Error handling
We recommend handling errors bycode rather than by HTTP status:
Rate limiting
Secret key requests are limited to 120 requests per minute using a sliding window. When you exceed the limit, the API returns a429 status:
Retry strategy
For429 responses, implement exponential backoff:
- Wait 1 second, then retry.
- If still rate-limited, wait 2 seconds.
- Double the wait time on each subsequent retry, up to a maximum of 30 seconds.
500 errors, retry once or twice with a brief delay. If the error persists, the issue is on our end — contact support with the request_id.