v63

latestOpenAPI 3.0.0Proprietaryraw.githubusercontent.com2026-08-0110571.8 MB
Tool Router

Create a presigned upload URL for a mount file

Generates a presigned upload URL for uploading a file to a workbench session mount. The caller should PUT the file content directly to the returned URL.

post/api/v3.1/tool_router/session/{session_id}/mounts/{mount_id}/upload_url

Path parameters

session_idstring toolRouterSessionId required

The unique identifier of the tool router session

Example:trs_1a2b3c4d5e6f

The unique identifier of the tool router session

mount_idstring required

ID of the storage mount

Example:files

ID of the storage mount

Request body

mount_relative_pathstring required

Supports subdirectories (e.g. "data/output.csv", "images/charts/chart.png")

mimetypestring

MIME type of the file being uploaded

Example request

{
  "mount_relative_path": "report.pdf",
  "mimetype": "application/pdf"
}

Response

Upload URL created successfully

upload_urlstring required

Presigned upload URL — PUT the file content here

mount_relative_pathstring required

Relative file path within the mount (e.g. "report.pdf")

sandbox_mount_prefixstring required

Absolute mount path inside the sandbox (e.g. /mnt/files)

expires_atstring required

ISO 8601 timestamp when the upload URL expires