Import Document
Convert one or more uploaded .docx/.doc/.pdf/.txt files into our template model using AI, merging them into a SINGLE editable DRAFT.
Returns a DRAFT (design_json + html_content + unmapped fields) — it is NOT saved. The frontend opens it in the editor; the user reviews and saves via the normal POST /declaration-templates. Conversion is best-effort.
Multipart form: files: one or more .docx/.doc/.pdf/.txt (repeated part; up to MAX_IMPORT_FILES). A single legacy file part is also accepted for backward compat. id_modulo: int (required) — 5 (Contratos), 11 (Viaturas) or 12 (Clientes) instructions: optional freeform guidance passed to the AI (not persisted) name / trigger_action / tipo_doc: optional, pre-fill the draft's metadata
Request
- Base URLhttps://api.multigest.pt (the document declares no server; this is the origin it was published from)
- URLhttps://api.multigest.pt/api/declaration-templates/import-document
- AuthAPI key in header x-api-token and API key in header x-origin-verify
Headers
Request body multipart/form-data
Response
Successful Response
Changes
No recorded changes to this operation across all 21 revisions of this API.