Get Audit Reports
GET/api/v1/reports/audit/{audit_id}
Returns all reports associated with an audit.
Audit ID
Number of reports available
Array of report objects
Download Report
GET/api/v1/reports/download/{report_id}
Redirects to signed Supabase URL for downloading the report file.
Redirects to signed download URL
Get Markdown Report
GET/api/v1/reports/markdown/{audit_id}
Returns the audit report in Markdown format.
Audit ID
Full report in Markdown format
Report creation timestamp
Get JSON Report
GET/api/v1/reports/json/{audit_id}
Returns the audit report in structured JSON format.
Audit ID
Audited URL
Domain name
Audit status
Whether site is YMYL (Your Money Your Life)
Site category
Complete audit data object
External intelligence data
Search engine results data
Actionable fix plan
Generate PDF (Deprecated)
POST/api/v1/reports/generate-pdf
Redirects to the new PDF generation endpoint with HTTP 307.
Error Codes
Report not ready or invalid request
Report not found
Legacy local PDF paths disabled (Supabase-only mode)
Internal server error