request_download_url
Returns a short-lived (15-minute) GET URL plus a ready-to-run curl_example. An agent with shell access can run the curl_example directly to save the exported file to the working directory, so the bytes never pass through its context window; clients without shell execution (or callers who only want the link) can use the signed URL directly. Generates the document in the requested format and returns a time-limited signed download URL. Specify format as 'pdf', 'docx', 'html', 'markdown', or 'txt' (legacy 'doc' also accepted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Export format (docx, pdf, html, markdown, txt). | docx |
| options | No | Customization (paper, margins, filename, watermark, etc.). Mirrors ExportRequest.options. | |
| filename | No | Optional Content-Disposition filename for the download (without extension). Auto-detected from the document's first heading if not provided. | |
| session_id | Yes | Session ID whose current document should be exported and packaged for download. | |
| authorization | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| filename | Yes | ||
| expires_at | Yes | ||
| curl_example | Yes | ||
| download_url | Yes | ||
| expires_in_seconds | Yes |