Errors

REST errors use standard HTTP status codes and one JSON error shape with a machine-readable code and a requestId you can quote to support.

Error shape

Errors return a JSON body with a stable machine-readable code:

{
  "error": { "code": "insufficient_credits", "message": "…" },
  "requestId": "…"
}

Status codes

400: Invalid input
Correct the request using the endpoint’s parameter schema. Validation failures are not billed.
401: Missing or invalid API key
Check the Bearer header and confirm the key is active.
402: Insufficient balance
Top up the account before retrying a paid request.
404: Resource unavailable
Check the ID and ensure the resource belongs to the authenticated account.
409: Conflicting operation
Read the error message and current state before retrying.
429: Rate or spend limit reached
Back off for a rate limit; inspect spend limits and in-flight reservations for a billing limit.
500 / 502 / 503: Service or upstream failure
Retry with backoff. Failed calls are not charged; keep the request ID for support.

Keep the returned requestId when contacting support. A successful workflow response can still include failed source checks; inspect the individual step statuses.