Errors

Errors share one shape: {"error": {"type", "code", "message", "param"}}. A decided request is never an error, whatever its verdict.

StatusCodesMeaning
400invalid_jsonThe body is not a JSON object.
401missing_api_key, invalid_api_keyNo key, or a revoked or expired one.
413body_too_largeThe body exceeds the limit.
415unsupported_media_typeSend Content-Type: application/json.
422schema_violation, unknown_decisionThe request does not match its decision's schema; param names the field.
422duplicate_idA list repeats an identifier that must be unique, such as a carrier request key or a carton id; param names the repeat.
422too_many_questionsThe request needs more model questions than one request may ask. Split the evidence across requests.
409subscription_exists, no_billing_account, same_plan, plan_change_unavailableUpgrade only from Developer; switch or manage billing only on a paid plan that is paid up, and downgrade once usage fits the smaller plan.
429rate_limited, daily_decision_quota, daily_question_quota, period_cap_reached, spend_limit_reachedWait for Retry-After, or raise the spend limit on the account page.
503service_unavailable, overloaded, billing_unavailableRetry shortly. /status shows whether the API is up.