Skip to main content

Audits API

Launch an audit

POST /api/apps/{appId}/audits
The credits are reserved at launch. The response includes the created audit and the Trigger.dev run handle:
The publicAccessToken can be used to subscribe to live run updates via Trigger.dev realtime. If the app hasn’t accepted the authorized-testing terms yet, the launch fails — call POST /api/apps/{id}/accept-terms with the signed name first.

List audits

GET /api/apps/{appId}/audits?page=1&limit=20

Get one audit

GET /api/apps/{appId}/audits/{auditId} Returns the full audit: status, score with breakdown, findings with evidence, and coverage summary.

Status values

pendingrunningcompleted | partial | failed | cancelled

Score in the response

See Security Score for how the numbers are computed.

Findings

Each finding includes severity, class, cwe, optional cve/cveScore/kev enrichment, source (agent | baseline | revalidation), verification status, structured evidence, and recommendation. See Findings & Evidence.

Retrieve the report

GET /api/apps/{appId}/audits/{auditId}/report Returns a short-lived presigned URL to the stored Markdown report:
Returns 404 "Report not available yet" until the audit finalizes. The URL expires after 10 minutes.

Manage an audit

Error reference