Error Handling
API error responses and status codes
Error response format
Errors use this structure:
The same { type, message } shape surfaces in three places:
- V1 (sync): in the response body when the request fails.
- V2 (async), submit: in the response body when the request fails.
- V2 (async), job failure: in the
errorfield of a status payload withstatus: "failed". See Async Jobs for the full shape.
Error types
Retry guidance
For retryable errors, use exponential backoff with jitter — a random delay of up to 50% of your backoff interval prevents thundering-herd retries. On 429, honor the Retry-After header if present.