Exec
Execute a command and stream output via SSE
Runs a command and streams stdout/stderr chunks as Server-Sent Events. Each event is a JSON payload. The final event includes exit_code and finished: true. Idle sandboxes are automatically resumed before execution.
post/sandboxes/{sandbox_id}/exec/stream
Request body
Response
SSE stream. Each line starting with data: contains a JSON ExecStreamEvent. The final event has finished: true.