cURL
curl --request POST \ --url https://api.example.com/api/v1/sandboxes/{id}/terminals \ --header 'Content-Type: application/json' \ --data ' { "shell": "bash", "cwd": "/app", "cols": 80, "rows": 24 } '
{ "terminal": { "id": "1234", "sandboxId": "e7847229c547d8", "shell": "bash", "status": "active", "createdAt": "2025-11-06T10:30:00Z" }, "wsUrl": "wss://api.simplesandbox.dev/api/v1/sandboxes/e7847229c547d8/terminals/1234/ws" }
Shell to use for the terminal session
bash
zsh
fish
sh
"bash"
Working directory for the terminal session
"/app"
Terminal width in columns
x > 0
80
Terminal height in rows
24
Terminal created
Show child attributes
WebSocket URL for connecting to the terminal
"wss://api.simplesandbox.dev/api/v1/sandboxes/e7847229c547d8/terminals/1234/ws"