Get file download link
get_download_urlMint a time-limited link to download one file from the server's workspace, e.g. after generating a report or converting a file, hand this URL back to the user instead of the raw content. With project_id, path is resolved inside that project's folder. The link needs no login and works for anyone who has it, so only mint it for files that are OK to share.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path, e.g. "public/index.html". Relative to the project folder when project_id is given, otherwise to the server workspace root. | |
| server_id | Yes | The server's id, as returned by create_server or list_servers. | |
| project_id | No | Optional. Resolve path inside this project's workspace folder instead of the server workspace root. | |
| ttl_seconds | No | Optional. Link lifetime in seconds. Default 86400 (24h), max 604800 (7 days). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The link. Anyone holding it can download the file without signing in. | |
| path | Yes | The path, as given. | |
| expires_at | No | When the link stops working, ISO 8601. | |
| project_id | No | The project the path was resolved in. null for the server workspace root. |