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_id string required

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

The session UUID.

Request Body

argv array of strings required

Example: ["uname", "-a"]

Program and arguments. Required and non-empty; run directly, with no shell interpretation.

workdir string optional

Example: /workspace

Working directory inside the sandbox. Empty uses the sandbox default (/workspace); not restricted to the workspace root.

stdin string optional

Optional 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.

timeoutSeconds integer optional

Example: 60

Optional timeout. Clamped server-side (default 60, maximum 240) regardless of the value sent.

Response Example

Show Response Example
{
  "exit_code": 0,
  "stdout": "Linux",
  "stderr": "",
  "duration_ms": 12
}

More Information

See /v2/agents/sessions/{session_id}/sandbox/exec in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.