Skip to main content
POST
Get a pre-signed URL to download an exported document without proxying through the agent.

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
required

Session ID whose current document should be exported and packaged for download.

Maximum string length: 256
format
enum<string>
default:docx

Export format (docx, pdf, html, markdown, txt).

Available options:
docx,
pdf,
html,
markdown,
txt,
doc
filename
string | null

Optional Content-Disposition filename for the download (without extension). Auto-detected from the document's first heading if not provided.

Maximum string length: 200
options
ExportOptions · object

Customization (paper, margins, filename, watermark, etc.). Mirrors ExportRequest.options.

Response

Successful Response

download_url
string
required
expires_at
string
required
expires_in_seconds
integer
required
curl_example
string
required
filename
string
required
format
string
required