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:
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
pending → running → completed | partial | failed | cancelled
Score in the response
Findings
Each finding includesseverity, 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:
404 "Report not available yet" until the audit finalizes. The URL expires after 10 minutes.