Convert documents between formats.
# Convert DOCX to PDF
curl -X POST "https://api.superdoc.dev/v1/convert?from=docx&to=pdf" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
-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 "[email protected]" \
-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 "[email protected]" \
-o output.docx
API key authentication. Keys start with sd_
Format of the uploaded file
docx, md, html Target format for conversion. Defaults to PDF for backward compatibility
pdf, docx Converted file
The response is of type file.