Error payload
Every error response is a JSON object with anerror field containing a typed error object:
Authentication errors
401 — auth_missing_key
401 — auth_missing_key
SGAI-APIKEY header was not sent. Add it to every request.403 — auth_invalid_key
403 — auth_invalid_key
Validation errors (400)
Returned when the request body fails schema validation. Thedetails array names each offending field.
code values: invalid_format, invalid_type, too_small, too_big, invalid_value, custom.
Not found (404)
GET /api/history/:id, GET /api/crawl/:id, and GET /api/monitor/:cronId when the UUID does not correspond to a record on your account.
Quota and rate limit errors
402 — insufficient_credits
402 — insufficient_credits
GET /api/credits.429 — rate_limited
429 — rate_limited
Server errors (5xx)
Retry strategy
The Python and JavaScript SDKs implement retries and typed error classes out of the box.