Export To Docx
insight
Export To Docx
Convert Markdown file to DOCX format using Pandoc.
This endpoint accepts a Markdown file and converts it to Microsoft Word (.docx) format with support for custom admonition blocks (ad-info, ad-warning, ad-tip).
Parameters:
- file: Markdown file (multipart/form-data)
- record_id: Optional record UUID for logging and tracking
- locale: Document language (e.g., “ru-RU”, “en-US”)
- title: Output filename (without extension)
- admonition_support: Enable Lua filters for admonition blocks
Returns:
- DOCX file with proper MIME type and Content-Disposition header
Errors:
- 400: Invalid file or parameters
- 413: File too large (>8 MB)
- 500: Conversion failed
- 504: Conversion timeout (>60s)
POST
Export To Docx
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data
Response
Successful Response