Get an audit run
Fetch a single audit run
/v1/agent-runs/{id}Fetch full detail for a single audit run owned by the authenticated user. While `status` is `pending`/`running`, `progress` carries the latest phase/page-count event streamed by the run, when one has been recorded. `notice` carries a `page_limit_clamped` signal when the run's requested page count was clamped down to the org's plan ceiling at dispatch time (never a hard error — the run itself still completed normally).
Path parameters
idstringrequiredAudit run id.
Responses
The audit run.
idstringrequiredurlstring (uri)requiredstatusstringrequiredAvailable options: pending, running, completed, failed, cancelled
trigger"cli" | "api" | "github" | "scheduled"requiredAvailable options: cli, api, github, scheduled
mode"audit" | "audit-fix" | "fix" | "recommend"requiredAvailable options: audit, audit-fix, fix, recommend
modelanyhealthScoreanyRounded score from the persisted `health_score` DB column (an integer). The unrounded float is available as `report.healthScore` on `GET /v1/agent-runs/{id}/report`.
issuesFoundanyissuesFixedanyreportIdanywebsiteIdanyauditIdanyconfiganyerroranycompletionReasonanycompletionMessageanycostUsdanystartedAtanycompletedAtanycreatedAtstring (date-time)requireduserIdstringrequiredInternal owner user id (the caller's own — runs are scoped to the authenticated user). Treat as an opaque identifier; do not log/forward outside an authenticated context.
orgIdanyprogressanyLive progress while `status` is `pending`/`running` (#692): the latest phase/page-count event streamed by the run. Null once the run is terminal, or if no progress event has been recorded yet.
noticeobjectPresent only when the run's requested page count exceeded the org's plan ceiling. The run is never rejected for this (clamp-and-notify, not a hard error) — it dispatches at `applied` pages instead of `requested`, and this field says so.
curl --request GET \
--url "https://api.squirrelscan.com/v1/agent-runs/ID"{}