v44

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-05-192301780.0 KB
Format

Format documents with professional layouts

Convert Markdown, JSON, or text content to professionally formatted PDF, DOCX, or HTML documents. Supports template components with variable interpolation for creating consistent legal documents like contracts, briefs, and reports.

post/format/v1/document

Request body

contentstring required

The source content to format

input_format'md' | 'json' | 'text'

Format of the input content

output_format'pdf' | 'docx' | 'html_preview' required

Desired output format

Response

Formatted document (binary for PDF/DOCX, HTML for preview)