Requests and errors

Format

  • JSON in and out, snake_case fields, UTF-8. File uploads are multipart/form-data.
  • Times are ISO 8601 in UTC. Money is in whole US dollars.
  • Ids are opaque strings with a prefix (aud_, lc_…). Don’t parse them.

Lists

Lists answer { "data": [...], "next_cursor": "…" }. Pass cursor for the next page; null is the end. limit is 1–200, default 50.

Long work

Scans, plans and AI checks answer at once (201 or 202) and run in the background. Follow them by polling, by GET /v1/events, or by webhooks.

Safe retries

Send Idempotency-Key: <your uuid> on a POST. The same key within 24 hours returns the first answer and never does (or charges) the work twice.

Rate limits

Each agency has its own limit a minute (120 unless agreed otherwise). Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-Credits-Remaining and X-Request-Id. Over the limit: 429 with Retry-After.

Errors

{
  "error": {
    "code": "insufficient_credits",
    "message": "This needs 1,560 credits; 412 are left. Nothing was started or charged.",
    "request_id": "req_f3K2…"
  }
}
400 invalidA field is missing or wrong; message names it.
401 unauthorizedNo key, or a revoked one.
402 insufficient_creditsNot enough credits. Nothing was started or charged.
403 agency_suspended / link_site_limitAccess suspended, or a limit of your account reached.
404 not_foundNo such object for your agency.
409 …Not now: a scan already running, a plan not ready, a report of a scan still running.
422 …We tried and the other side refused, e.g. imap_login_failed, unreadable_file.
429 rate_limitedSlow down; see Retry-After.
5xx server_errorOurs. Retry with the same Idempotency-Key.

Quote request_id when you write to support.