Rate limits and API errors
Why the API answers 429 or another error, what the most common errors mean, and how to fix them.
Rate limits
Each API key can make a limited number of requests and uploads per minute, depending on your plan. Over the limit, the API answers 429 with a Retry-After header: wait that many seconds and try again. The official SDKs do this for you.
Bulk imports and migrations are paced automatically, so they don't run into these limits. See Errors & rate limits for the numbers per plan.
Common errors
| Status | What it usually means |
|---|---|
| 401 | The API key is missing, mistyped or revoked |
| 402 | You've used your credits for the month: see Reaching your limit and overages |
| 403 | The key lacks a permission, or the feature isn't on your plan |
| 404 | Not found. Also returned for a private image without a valid signed URL |
| 409 | An image with that public ID already exists (or is in the trash) |
| 413 | The file is larger than your plan allows |
| 415 | The file type isn't supported |
Every error includes a message explaining what went wrong. The full list is in Errors & rate limits.