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
cURL
Documentation Index
Fetch the complete documentation index at: https://docs.case.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key starting with sk_case_
Body
application/json
The source content to format
Desired output format
Available options:
pdf, docx, html_preview Format of the input content
Available options:
md, json, text Optional template composition and styling settings used during document generation
Response
Formatted document (binary for PDF/DOCX, HTML for preview)
The response is of type file.
cURL

