Sandbox

List live processes and retained observations

Inspect live processes and retained observations; this does not start a command. Praxis observation, not complete provider history. Only a witnessed exit event establishes exitCode; disconnects and restarts leave gaps and unknown state. Output retains at most 1 MiB/1024 chunks per process and 4 MiB/4096 chunks per instance across 256 observations. Truncation is explicit. Output data is base64; timestamps are Unix milliseconds. Reading never resumes a paused sandbox.

Call Create sandbox first and replace sbx_123 with its returned sandboxID.

GET /sandbox/v1/sandboxes/{sandboxID}/processes● Supported

Request parameters

  • sandboxIDstring必填

    path: Sandbox ID.

  • statestring可选

    query: live: running; exited: finished; all: all retained observations. Defaults to live.

    取值 liveexitedall

Returns

200

Errors follow the E2B format — see error codes

Response

HTTP 200

Bounded observation with explicit completeness

application/json

NameTypeDescription
processesarray<object>Processes of the sandbox: running ones and retained observations of exited ones, newest first.
processes[].processIdstringId of the process: `obs-<n>` for a process whose start was observed, `live-<pid>` for one that was only seen running.
processes[].pidintegerOperating-system process id inside the sandbox.
processes[].tagstringTag the process was started with; absent when none.
processes[].configobjectCommand the process was started with.
processes[].ptybooleanWhether the process runs in a pseudo-terminal; present for observed processes.
processes[].startedAtstringTime at which the process start was observed, UTC.
processes[].exitedAtstringTime at which the process exit was observed, UTC; absent until an exit was witnessed.
processes[].exitCodeintegerExit code; present only when the exit was witnessed.
processes[].statestringCurrent state of the process.
processes[].observedbooleanWhether the platform watched this process start. False for a process that was only seen running.
processes[].observationGapbooleanTrue when observation was interrupted, so output or the exit may be missing; the state can then be unknown.
processes[].outputTruncatedbooleanTrue when old output chunks were dropped to stay within the retention limits.