API ReferenceSessions (prev Tool Router)
Create a presigned download URL for a mount filev3.0
Generates a presigned download URL for a file in a workbench session mount. Accepts a relative path within the mount.
Authorization
ApiKeyAuth x-api-key<token>
Project API key authentication
In: header
Path Parameters
session_idstringRequired
The unique identifier of the tool router session
Format:
toolRouterSessionIdmount_idstringRequired
ID of the storage mount
Request Body
application/json
mount_relative_pathstringRequired
Relative file path within the mount
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v3/tool_router/session/trs_1a2b3c4d5e6f/mounts/files/download_url" \ -H "Content-Type: application/json" \ -d '{ "mount_relative_path": "report.pdf" }'{ "download_url": "string", "mount_relative_path": "string", "sandbox_mount_prefix": "string", "expires_at": "string"}