Execute command with streaming
Execute a command inside a sandbox and stream stdout/stderr as SSE.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
sandbox_name
Request
This endpoint expects an object.
command
Command to execute
workdir
Working directory for command execution inside the sandbox
env
Environment variables to inject into this execution session
session
Tmux session name. For POST /exec, creates a detached tmux session (replace semantics - kills any existing session with the same name). For WebSocket /exec, uses attach-or-create semantics (interactive). Ignored for POST /exec/stream.
user
User to run the command as (e.g., ‘islo’). If not provided, uses image default.
Response
Successful Response
Errors
401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error