Import a layout from a sample report
Turn an uploaded report PDF into one proposed layout: its branding becomes inline theme overrides and its structure becomes ordered blocks. Returns the candidate only; nothing is saved and the uploaded PDF is not stored. Requires the AI import option to be enabled.
Authorization
OrgApiKey AuthorizationBearer <token>
Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.
In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.auditmark.io/v1/report-layouts/import" \ -F template_family_id="290e2e3d-b358-4141-b04d-2f3e9b65d632" \ -F file="string"{ "candidates": [ { "angle": "string", "label": "string", "content": {}, "summary": "string" } ], "pages_read": 0, "pages_total": 0}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}