Open a terminal connection to a sandbox
Open an interactive terminal (PTY) to a ready sandbox. Returns a WebSocket URL and a one-time ticket. Refused while a Task is using the sandbox.
Authentication
Use Bearer <api-key>.
Path parameters
Headers
Optional retry key for this billable operation. Reusing the same key with the same request replays its stable outcome; credential-bearing results may be freshly issued for the same principal. Reusing it with a different request returns 409.
Request
Response headers
Evaluated policy limit; zero when no finite policy was evaluated.
Remaining policy budget; zero when no finite policy was evaluated.
Seconds until reset; zero when no finite policy was evaluated.
Response
One-time credential for opening the WebSocket, valid for one minute. Send it as Authorization: Bearer <ticket>, or from a browser as the subprotocol bctrl.ticket.<ticket> alongside bctrl.terminal.v1.

