Skip to main content
POST
/
superdoc
/
v1
/
convert
Convert documents between formats
curl --request POST \
  --url https://api.case.dev/superdoc/v1/convert \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form from=docx \
  --form to=pdf
"<string>"

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

file
file
required

The document file to convert (max 25MB)

from
enum<string>
required

Source format of the document

Available options:
docx,
md,
html
to
enum<string>
default:pdf

Target format for conversion

Available options:
pdf,
docx

Response

Converted document

The response is of type file.