Execute command in an existing sandbox session
Run a non-interactive command in an existing sandbox session over HTTP. Returns stdout/stderr output and exit code.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
id
Session ID
Request
This endpoint expects an object.
command
Command to execute in the existing session.
background
Whether to run command in background and return a command handle.
cwd
Optional working directory.
env
Optional environment variables for command execution.
stdin
Optional stdin payload (UTF-8).
timeout_ms
Optional timeout in milliseconds.
user
Optional user to run the command as (e.g. root, ubuntu).
Response
Command executed
background
command
ephemeral
kind
session_id
status
command_id
exit_code
output
output_truncated
pid
workspace
workspace_id
