Skip to content

Errors

One error shape for every route, and what each code means.

Every error has the same shape:

{
  "error": {
    "code": "scan_active",
    "message": "<string>",
    "details": {},
    "request_id": "<string>"
  }
}
  • code doesn't change: write your code against it.
  • message is for people, in the account's language.
  • details adds facts for some codes, like the limit and its window for rate_limited.
  • request_id identifies the request: give it to us when you ask for help.

Codes

StatusCodeWhat it means
401invalid_keyThe key isn't valid, or it was revoked.
401unauthenticatedNo key, or not sent as Bearer.
402entitlement_exceededThe account's plan doesn't include the API.
402usage_exhaustedOut of credits for this scan.
404not_foundNo such id on this account. Another account's ids answer 404 too.
404no_scanThe location has no finished scan yet.
404link_goneThe PDF link expired or is unknown.
409scan_activeA scan is already running for this location.
409scan_not_doneThe scan hasn't finished yet.
409report_runningA report is being made for this location.
409too_many_webhooksThe account has the most webhook subscriptions it can have.
422validation_errorA parameter or the body isn't valid. details.fields says which.
429rate_limitedOver the key's limit a minute or a day. Wait the seconds in Retry-After.
429safety_capOver a daily safety cap for starting scans.

What to retry

  • 429: wait the seconds in Retry-After, then try again.
  • 409 scan_active or report_running: wait for the one running to finish.
  • Any other 4xx needs a change to the request.