v4

latestOpenAPI 3.0.3Commercialraw.githubusercontent.com2026-08-0112681.4 KB
Documents

Convert

Convert documents between formats.

Supported Conversions

  • DOCX → PDF: Convert Word documents to PDF
  • Markdown → DOCX: Convert Markdown to Word documents
  • HTML → DOCX: Convert HTML to Word documents

Examples

# Convert DOCX to PDF
curl -X POST "https://api.superdoc.dev/v1/convert?from=docx&to=pdf" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@document.docx" \
  -o output.pdf

# Convert Markdown to DOCX
curl -X POST "https://api.superdoc.dev/v1/convert?from=md&to=docx" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@document.md" \
  -o output.docx

# Convert HTML to DOCX
curl -X POST "https://api.superdoc.dev/v1/convert?from=html&to=docx" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@document.html" \
  -o output.docx

Limitations

  • File size: 25MB maximum
  • Concurrent requests: 10 per API key
post/v1/convert

Query parameters

from'docx' | 'md' | 'html' required

Format of the uploaded file

to'pdf' | 'docx'

Target format for conversion. Defaults to PDF for backward compatibility

Response

Converted file