The shape
When a call fails, the body has anerror and no data:
codeis stable. Build on it, not on the message.messageis for people. It may change.detailsappears when there is more to say: which field failed, how long to wait, which id already exists.request_idis also in theX-Request-Idheader. Quote it when you contact support.
Every code
Key and plan
Key and plan
Access
Access
Not found
Not found
Input
Input
Balances
Balances
Limits
Limits
Conflicts
Conflicts
Server
Server
Retry only these
RATE_LIMITED, AUTH_RATE_LIMITED, PROMPTS_DAILY_CAP and QUERY_TIMEOUT after the wait they ask for. INTERNAL once. Everything else will fail the same way again until you change something.