Errors

How the API reports errors and how to handle them.

Error codes

CodeHTTP statusDescription
field_value_invalid400This error code indicates that value supplied for the field is invalid.
request_body_invalid400This error code indicates that the request body is invalid.
request_idempotency_mismatch400This error code indicates that the request was made with an idempotency key that was previously used for a different request payload.
required_field_missing400This error code indicates that the request is missing a required field.
api_key_not_provided401This error code indicates that the API key was not provided in the request headers.
wallet_credit_not_enough402This error code indicates that the user's wallet has insufficient credits to perform the action.
request_body_too_large413This error code indicates that the request body is too large. The maximum allowed size is 5MB.
internal_server_error500This error code indicates that something went wrong with our servers.
service_temporary_unavailable503This error code indicates that the service is temporarily unavailable.