Sandboxes
Cancel a command
Stops a running command (SIGTERM, then SIGKILL after 5 seconds) and returns it. A finished command is returned unchanged. Requires run_commands. Commands and file operations need an ACTIVE sandbox; on any other state they answer 409.
Bearer token for the authenticated caller.
Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.
Required string length: 1 - 53
Example: "ws_j572abc123def4"
Sandbox id (sbx_...).
Pattern: ^sbx_[A-Za-z0-9]{1,64}$
Example: "sbx_j572abc123def456"
Sandbox command id (cmd_...).
Pattern: ^cmd_[A-Za-z0-9]{1,64}$
Example: "cmd_j572abc123def456"
Response
SandboxCommand
Sandbox command id (cmd_...).
Pattern: ^cmd_[A-Za-z0-9]{1,64}$
Example: "cmd_j572abc123def456"
Sandbox id (sbx_...).
Pattern: ^sbx_[A-Za-z0-9]{1,64}$
Example: "sbx_j572abc123def456"
SUCCEEDED: exited with code 0. FAILED: exited with another code, was killed, or hit its timeout (exit code 124).
Available options: RUNNING, SUCCEEDED, FAILED, CANCELLED
Set once the command finished.
Captured output, only on the response to a wait: true request that finished in time; null elsewhere.