dots.v2.agents.sessions.bySession_id().sandbox.exec.post()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.agents.sessions.bySession_id(session_id).sandbox.exec.post(body: Exec_in_sandbox_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Exec_in_sandbox_response>Description
Runs argv directly in the guest (no shell). Stdout/stderr are buffered and capped at 1 MiB each;
truncation is indicated via response headers when present. A non-zero exit code is still HTTP 200.
Parameters
Path Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
Request Body
argvarray of strings requiredExample:
["uname", "-a"]Program and arguments. Required and non-empty; run directly, with no shell interpretation.
workdirstring optionalExample:
/workspaceWorking directory inside the sandbox. Empty uses the sandbox default (/workspace); not restricted to the workspace root.
stdinstring optionalOptional base64 stdin payload, delivered in full and then closed so the process sees EOF. One-shot only, there is no streaming stdin on this endpoint.
timeoutSecondsinteger optionalExample:
60Optional timeout. Clamped server-side (default 60, maximum 240) regardless of the value sent.
Response Example
More Information
See /v2/agents/sessions/{session_id}/sandbox/exec in the API reference for additional detail on responses, headers, parameters, and more.