Error responses never consume credits. The
credits_consumed field will always be 0 on errors.Error Codes Reference
Error Code Details
INVALID_API_KEY (403)
Returned when thex-api-key header is missing or contains an invalid key.
x-api-key header.
INVALID_ACCOUNT (404)
Returned when theaccount_id in the request body does not match any account under your API key.
GET /v2/accounts to list your available accounts and use a valid account_id.
ACCOUNT_INACTIVE (403)
Returned when the account exists but is not currently active.GET /v2/accounts/{account_id}. To reactivate the account, log in again via POST /v2/login with the same credentials.
INVALID_ACTION (400)
Returned when theaction field contains an unsupported action for the category endpoint.
INVALID_PARAMS (400)
Returned when required parameters are missing or parameter values are invalid.message field for the specific parameter issue and refer to the action’s documentation.