Auditmark

Preview an inspection's report

GET
/inspections/{inspection_id}/report-preview

Instant, read-only HTML preview of the inspection's report (the same renderer the PDF uses). Authorizes via the caller's own RLS connection so a BYPASSRLS aggregate can't leak cross-tenant; renders on a service_session. Never creates a report row / enqueues the worker.

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Path Parameters

inspection_id*Inspection Id

Response Body

text/html

application/json

curl -X GET "https://api.auditmark.io/v1/inspections/497f6eca-6276-4993-bfeb-53cbbbba6f08/report-preview"
"string"
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}