API docs / API reference / Website audits

Cancel a scan

POST /v1/audits/{audit_id}/scans/{scan_id}/cancel

What it read is charged; the rest of the reserve comes back.

Path parameters

audit_id required
string
—
scan_id required
string
—

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/{scan_id}/cancel" \
  -H "Authorization: Bearer $AMARKOS_KEY"

Response · 200

{
  "id": "scn_1b2c3d4e5f60718293a4b5c6d7e8f901",
  "status": "cancelled",
  "credits": {
    "reserved": 0,
    "used": 220,
    "settled": true
  }
}

← List every address crawled · Download the report →