dots.v2.agents.sessions.bySession_id().workspace.transfers.post()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.agents.sessions.bySession_id(session_id).workspace.transfers.post(body: TransfersPostRequestBody, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Workspace_transfer_created>Description
Creates an asynchronous, object-storage-backed transfer for payloads larger than the streaming path supports (> ~50 MiB). Bulk bytes never traverse harness-api: the client PUTs/GETs presigned DO Spaces URLs directly.
Set direction to upload or download.
upload: responds 201 withtransfer_id+part_size; the client then requests per-part presigned PUT URLs, uploads them to Spaces, and callscommit.download: responds 202 withtransfer_id; the client polls GET untilcompletedand then fetchesdownload_urlfrom Spaces.
Upload, download, and cancel are live.
Parameters
Path Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
Request Body
directionstring requiredTransfer direction.
pathstring requiredExample:
exampleWorkspace-relative path. Destination for upload, source for download. Paths that escape the workspace root are rejected.
isArchiveboolean optionalExample:
trueUpload only. When true, the payload is a tar the guest extracts at
path.asArchiveboolean optionalExample:
trueDownload only. When true,
pathis exported as a tar stream.sizeBytesinteger optionalExample:
4Optional total payload size, as a JSON number. Validated against the maximum staged object size (50 GiB); a larger value returns 413.
sha256string optionalExample:
exampleOptional lowercase hex SHA-256 of the full payload. If set on an upload, it must match on commit.
Request Sample
Response Example
More Information
See /v2/agents/sessions/{session_id}/workspace/transfers in the API reference for additional detail on responses, headers, parameters, and more.