Error response format
The HTTP status code.
A machine-readable error type. See the table below.
A human-readable explanation of what went wrong.
A unique identifier for the request. Include this when contacting support.
Error types
| Error type | Status code | Description |
|---|---|---|
invalid_request | 400 | The request is malformed or uses an unsupported HTTP method. |
unauthenticated | 401 | Missing, invalid, or deactivated API key. |
insufficient_credits | 402 | Your account does not have enough credits for this operation. |
forbidden | 403 | The API key does not have permission for this action. |
not_found | 404 | The requested resource does not exist or does not belong to your company. |
conflict | 409 | The request conflicts with the current state of the resource. |
validation_error | 422 | The request body is missing required fields or contains invalid values. |
rate_limited | 429 | Too many requests. Back off and retry after a delay. |
internal_error | 500 | An unexpected error occurred on the server. |

