Skip to main content

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 -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

FeatureDescription
Format ConversionConvert between DOCX, PDF, Markdown, and HTML
Template AnnotationPopulate DOCX templates with dynamic field data
High FidelityPreserves complex formatting, tables, and styles
Multiple Input MethodsUpload files, provide URLs, or send base64-encoded content

Supported conversions

FromToUse 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 -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 -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 -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