Skip to main content

Error shapes

The specification defines two error payloads.

Status codes

Error codes

Rate limits

Requests are limited per account, across all of its API keys, by the plan of the key’s owner: Over the limit, the API answers 429 with the code RATE_LIMITED. The RateLimit-Remaining and RateLimit-Reset response headers tell you how many requests are left in the current window and when it resets.

Handling errors

Using an SDK? Errors are mapped to typed exceptions: Python · TypeScript.