Error response format
Present on some errors with more than one cause. For example,
invalid_images lists each failed image’s position, code, and message, and an invalid_request from Create Image Carousel lists each invalid field with a message.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.