Returns a short-lived (15-minute) GET URL plus a curl example. If you have shell access (Bash tool), execute the returned curl_example yourself to download the file to the user’s working directory — do NOT paste the curl command back to the user expecting them to run it manually. Only fall back to returning the URL+command as text when shell execution is genuinely unavailable, OR when the user has explicitly asked for the URL only. Bytes never pass through the agent’s context window either way. Internally this calls the same export pipeline as export_document, then stores the result in cloud storage and returns a signed URL. Specify format=‘pdf’, ‘docx’, ‘doc’, or ‘html’.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Session ID whose current document should be exported and packaged for download.
200Export format. 'doc' = Word-compatible HTML (highest fidelity), 'docx' = native OOXML, 'pdf' = portable, 'html' = raw markup.
doc, docx, pdf, html Optional Content-Disposition filename for the download (without extension). Auto-detected from the document's first heading if not provided.
200