API errors

API errors return JSON with an error field.

json
{ "error": "Unauthorized"}

Common statuses

StatusMeaningFix
400The request body or parameter is invalid.Validate against the OpenAPI spec.
401Missing or invalid auth.Check API key, session, or webhook secret.
403The account or plan cannot perform the action.Check plan limits and project access.
404Resource not found.Confirm the ID and account ownership.
429Quota or rate limit reached.Wait, reduce retries, or add credits.
5xxServer-side failure.Retry with backoff and keep the original request ID if available.

Retry guidance

Retry 429 and 5xx responses with exponential backoff. Do not retry validation errors without changing the request.

Ask a question... ⌘I