Skip to main content
POST
/
v1
/
documents
/
export
Export Document
curl --request POST \
  --url https://api.superdocs.app/v1/documents/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_id": "<string>",
  "html": "<string>",
  "filename": "<string>",
  "format": "doc"
}
'
"<string>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Body

application/json
session_id
string | null

Session ID to export the document from. Required if html is not provided.

html
string | null

HTML content to convert to a Word file. If provided, this is used instead of the session document.

filename
string | null

Custom filename for the exported file (without extension). Auto-detected from the first heading if not provided.

format
string | null
default:doc

Export format: 'doc' (default, Word-compatible) or 'docx' (native Open XML).

Response

Word file download

The response is of type file.