Retrieve a scan's live progress
⚠️ Beta endpoint: behavior and schemas are subject to change.
Retrieve the live progress of a historical scan: a coarse status (queued, in_progress, completed) plus element and byte counters, which keep reporting the scan's final tally once it completes.
Counters are reported the same way for every source, but not every source tracks every counter: data_downloaded_bytes and data_scanned_bytes are null for sources that do not measure bytes (VCS repositories among them), which is distinct from a real 0.
Poll this endpoint instead of the scan detail endpoint while a scan is running. Once the scan reaches completed, the response includes an audit_url pointing at the scan's audit summary; stop polling and fetch that endpoint instead.
elements_total is provisional while listing_finished is false — it only reflects elements listed so far, not the final total.
Path parameters
The id of the scan to retrieve the live progress of.
Response
Scan live progress
Example response
{
"status": "in_progress",
"audit_url": "/v1/scans/3fa85f64-5717-4562-b3fc-2c963f66afa6/audit",
"elements_scanned": 128,
"elements_total": 512,
"elements_skipped": 3,
"data_downloaded_bytes": 10485760,
"data_scanned_bytes": 10485760
}