API docs / API reference / Website audits

Run a scan now

POST /v1/audits/{audit_id}/scans

Answers 202 at once. Follow it with GET …/scans/{scan_id} or the audit.scan.completed webhook. One scan at a time per audit.

Path parameters

audit_id required
string
—

Body

mode
sample | full | same
same: re-read exactly the pages of the last finished scan, to compare. Default from the audit’s scope.

Errors

409 scan_runningA scan of this audit is running.
402 insufficient_credits

Send an Idempotency-Key header to make a retry safe: the same key within 24 hours returns the first answer and is never charged twice.

Request

curl -X POST "https://amarkos.com/api/v1/audits/{audit_id}/scans" \
  -H "Authorization: Bearer $AMARKOS_KEY"

Response · 202

{
  "id": "scn_1b2c3d4e5f60718293a4b5c6d7e8f901",
  "status": "running",
  "mode": "sample",
  "progress": {
    "done": 0,
    "total": 0,
    "pages_read": 0,
    "pages_found": 0
  },
  "score": null,
  "started_at": "2026-11-10T09:41:58Z",
  "finished_at": null,
  "credits_reserved": 260
}

← Archive an audit · List scans →