Skip to main content

POST /convert

Converts a document uploaded as multipart/form-data. It is the natural route for web forms and clients that already handle attachments. ##Request
The file field is named file.

Query params

enum
default:"auto"
pdf, docx, csv, txt, xlsx, pptx, zip. With auto it is detected by extension and then by content-type.
enum
default:"fast"
fast, balanced, quality or auto. See Modes.
boolean
default:"true"
Cleans repeated headers, control lines and Markdown noise.
enum
default:"markdown"
markdown (raw body) or json (object with embedded metadata).
##Bodysuit
file
required
The document to convert. Format detected by file name and content-type.

Examples

Answer

By default text/markdown plus billing headers. See Response and headers.
For maximum network efficiency on large uploads, use POST /convert/raw with content-encoding: gzip or zstd. multipart doesn’t compress as well.