Errors

Errors use a consistent, machine-readable envelope.

JSON
{
  "error": {
    "type": "invalid_request_error",
    "code": "missing_field",
    "message": "clientName is required.",
    "param": "clientName"
  }
}
HTTPtypeMeaning
400invalid_request_errorMalformed or missing parameters
401authentication_errorBad, missing, or revoked key
402usage_limit_errorThe prepaid balance has nothing left for API requests past the included pool (code out_of_usage_credit), or the trial's 500 requests are used up (code trial_request_limit) - the message says what to do
403permission_errorKey lacks the scope, the plan has no API access, a live key on a trial, a test key writing, or the feature is switched off
404not_foundNo such resource in this organization
409idempotency_errorIdempotency-Key reused with a different body
422validation_errorWell-formed but rejected by a business rule
429rate_limit_errorRate limited (see Retry-After)
500api_errorUnexpected server error