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.
SuperDoc provides document conversion and template automation. Convert between DOCX, PDF, Markdown, and HTML formats, or populate DOCX templates with dynamic data.
Quick example
cURL
CLI
Typescript
Python
C#
Java
PHP
Go
curl -X POST https://api.case.dev/superdoc/v1/convert \
-H "Authorization: Bearer sk_case_YOUR_API_KEY" \
-F "file=@document.md" \
-F "from=md" \
-F "to=docx" \
-o output.docx
# Convert DOCX to PDF
curl -X POST https://api.case.dev/superdoc/v1/convert \
-H "Authorization: Bearer sk_case_YOUR_API_KEY" \
-F "file=@document.docx" \
-F "from=docx" \
-F "to=pdf" \
-o output.pdf
Capabilities
Feature Description Format Conversion Convert between DOCX, PDF, Markdown, and HTML Template Annotation Populate DOCX templates with dynamic field data High Fidelity Preserves complex formatting, tables, and styles Multiple Input Methods Upload files, provide URLs, or send base64-encoded content
Supported conversions
From To Use Case docxpdfFinalize Word documents for distribution mddocxGenerate editable Word docs from Markdown mdpdfCreate PDFs directly from Markdown content htmldocxConvert web content to Word format
Endpoints
Convert POST /superdoc/v1/convert — Convert documents between formats
Annotate POST /superdoc/v1/annotate — Populate DOCX template fields
Common patterns
Generate PDF from Markdown
cURL
CLI
Typescript
Python
C#
Java
PHP
Go
curl -X POST https://api.case.dev/superdoc/v1/convert \
-H "Authorization: Bearer $CASEDEV_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"document_base64": "IyBSZXBvcnQgY29udGVudC4uLg==",
"from": "md",
"to": "pdf"
}' \
-o report.pdf
Populate a contract template
cURL
CLI
Typescript
Python
C#
Java
PHP
Go
curl -X POST https://api.case.dev/superdoc/v1/annotate \
-H "Authorization: Bearer $CASEDEV_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"document": {
"url": "https://your-bucket.s3.amazonaws.com/templates/contract.docx"
},
"fields": [
{ "id": "client_name", "type": "text", "value": "Acme Corporation" },
{ "id": "contract_date", "type": "date", "value": "2025-01-15" },
{ "id": "contract_amount", "type": "number", "value": 50000 }
],
"output_format": "pdf"
}' \
-o contract.pdf
Convert uploaded DOCX to PDF
cURL
CLI
Typescript
Python
C#
Java
PHP
Go
curl -X POST https://api.case.dev/superdoc/v1/convert \
-H "Authorization: Bearer $CASEDEV_API_KEY " \
-F "file=@uploaded.docx" \
-F "from=docx" \
-F "to=pdf" \
-o converted.pdf
Format Style-based document generation with templates and typography control
Vault Store and search documents with built-in vector indexing