Basic conversion
curl -X POST https://api.superdoc.dev/v1/convert?from=docx \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.docx" \
-o output.pdf"<string>"Document Operations
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
Basic conversion
curl -X POST https://api.superdoc.dev/v1/convert?from=docx \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.docx" \
-o output.pdf"<string>"Documentation Index
Fetch the complete documentation index at: https://superdoc-nick-sd-3220-overlapping-suggestion-contract.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Keys start with sd_
Query Parameters
Format of the uploaded file
Available options:
docx, md, html Target format for conversion. Defaults to PDF for backward compatibility
Available options:
pdf, docx Response
Converted file
The response is of type file.
Was this page helpful?
⌘I

