Sandboxes
Create Sandbox Connection
Returns a short-lived WebSocket URL for an interactive shell in a
running sandbox. Connecting starts /bin/sh with a PTY. The connection
has no stored history or reconnect support.
The URL contains a signed token that expires at expires_at. An open
WebSocket can remain connected after the token expires. Clients send
input as {"type":"input","data":"..."} and terminal size changes as
{"type":"resize","rows":24,"cols":80}. The server returns terminal
output as text frames. Closing the WebSocket ends the shell. Pausing or
stopping the sandbox also closes the connection.
POST
Create a direct sandbox connection
Create a direct sandbox connection