Scans
Trigger Scan
Start a scan job and poll for completion
POST
Trigger Scan
Triggers a scan from the UI. The endpoint returns immediately; clients should poll Request body —
/scan/status/{scan_id} for completion.
Only one scan can run at a time. A second concurrent trigger returns 409 A scan is already running. Stale job records (>30 min old) are pruned on each trigger.
Request body — ScanTriggerPayload
Absolute path to the OpenClaw workspace (must contain
openclaw.json).Benchmark profile.
Errors
400— Path is not a valid OpenClaw workspace409— A scan is already running
Response
Job ID for status polling (12-char hex)
Always
running on a successful triggerISO-8601 timestamp
Trigger Scan

