Create a five-minute download link for one Google Drive file, for clients with a shell
Changed onFor clients without OpenWork host file transport but with a shell, such as a Workbot computer or a coding agent. Download with curl into a file instead of reading the file into context; Docs, Sheets and Slides export to Office formats by default. To save edits back, prepare createGoogleDriveUploadSession with fileId and this revision as baseRevision. Uses the selected connection.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Request body
Google Docs, Sheets, Slides and Drawings only: export format, such as xlsx or csv for a Sheet, docx, md, txt or pdf for a Doc, pptx for Slides. Defaults to the Office format.
Response
Short-lived bearer download URL, as JSON and as an MCP resource link, with the file's revision; no file content.
Secret bearer URL for this one file, valid for five minutes. Do not print, share, log or persist it.
The same download as an MCP resource link.
Changes
- breaking
the response property
download/extensionbecame nullable for the status - breaking
the response property
download/formatbecame nullable for the status - breaking
the response property
file/md5Checksumbecame nullable for the status
11 more changes in this revision
- breaking