Round-trips the document through the original docx renderer, preserving tables, borders, shading, alternating row colors, headers, footers, fonts, inline styling, and embedded images. Two modes: pass html directly to export ad-hoc content, OR pass session_id to export the session’s current state. Format options: ‘doc’ (default, Word-compatible HTML, pixel-perfect fidelity, best for end users) or ‘docx’ (native Open XML via python-docx, best for programmatic processing or mail merge). Fidelity is the differentiator vs naive HTML to docx converters.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Session ID to export document from (Mode B). Required if html is not provided.
256HTML content to convert to DOCX (Mode A). If provided, this is used instead of the session document.
50000000Custom filename for the exported file (without extension). Auto-detected from first heading if not provided.
255Export format: 'doc' (Word-compatible HTML — pixel-perfect formatting fidelity) or 'docx' (native Open XML — better for programmatic processing). Default: 'doc'.
10Successful Response