Errors
How the API reports errors and how to handle them.
Error codes
| Code | HTTP status | Description |
|---|---|---|
| field_value_invalid | 400 | This error code indicates that value supplied for the field is invalid. |
| request_body_invalid | 400 | This error code indicates that the request body is invalid. |
| request_idempotency_mismatch | 400 | This error code indicates that the request was made with an idempotency key that was previously used for a different request payload. |
| required_field_missing | 400 | This error code indicates that the request is missing a required field. |
| api_key_not_provided | 401 | This error code indicates that the API key was not provided in the request headers. |
| wallet_credit_not_enough | 402 | This error code indicates that the user's wallet has insufficient credits to perform the action. |
| request_body_too_large | 413 | This error code indicates that the request body is too large. The maximum allowed size is 5MB. |
| internal_server_error | 500 | This error code indicates that something went wrong with our servers. |
| service_temporary_unavailable | 503 | This error code indicates that the service is temporarily unavailable. |