Get a download link for a run file
media_linklooot: get a short-lived download link for a file a run produced (audio, image, video, PDF). Download it with curl or fetch within 15 minutes; call again for a new link. Pass the runId (and mediaId when the run has several files; the error lists them). The answer carries downloadUrl (no token needed), downloadUrlExpiresAt, contentType, byteLength, sha256 to check the download, and a filename suggestion. Download the file, do not paste it into the chat, and keep the link out of logs and shared documents. Pass inline:true for a png, jpeg, gif or webp image under 200 KB to also see it in the answer. Errors: run_not_found, media_not_found, media_expired, media_id_required, media_links_disabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| inline | No | ||
| mediaId | No |