Execute a command and stream stdout/stderr in real-time via Server-Sent Events.
Content-Type: text/event-stream.
Use this endpoint when you want to display output incrementally as the command
runs, rather than waiting for it to complete.
sbx-<8 chars>."for i in 1 2 3; do echo $i; sleep 0.5; done"Content-Type: text/event-stream. Each SSE event carries a JSON
payload. The stream terminates when the command exits.
| Status | Cause |
|---|---|
400 | Invalid request body |
401 | Missing or invalid API key |
404 | Sandbox not found |
409 | Sandbox is paused — resume it before running commands |
410 | Sandbox has been killed |
502 | envd daemon inside the VM is unreachable |
503 | Sandbox has no VM |