Skip to main content

Error payload

Every error response is a JSON object with an error field containing a typed error object:

Authentication errors

The SGAI-APIKEY header was not sent. Add it to every request.
The key was recognized as malformed, revoked, or issued against the legacy v1 surface. Rotate it from the dashboard.

Validation errors (400)

Returned when the request body fails schema validation. The details array names each offending field.
Common code values: invalid_format, invalid_type, too_small, too_big, invalid_value, custom.

Not found (404)

The resource ID is well-formed but does not exist for this account. Returned by lookup endpoints such as 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

Top up or upgrade your plan. Check balance with GET /api/credits.
Back off and retry with exponential delay. Per-minute request limits depend on your plan.

Server errors (5xx)

Transient — retry with exponential backoff. If errors persist, check the status page or contact support.

Retry strategy

The Python and JavaScript SDKs implement retries and typed error classes out of the box.