Runsite provides interactive shell access to running web service containers via WebSocket. Use it for debugging, inspecting logs, or running one-off commands.
WS /api/shell/{web_service_id}?token=<access_token>
Authentication is required via the token query parameter.
Limit Value Session timeout 10 minutes of inactivity Concurrent sessions 3 per web service
Type Description Payload inputTerminal input { "type": "input", "data": "ls -la\n" }resizeTerminal resize { "type": "resize", "cols": 80, "rows": 24 }pingKeep-alive { "type": "ping" }
Type Description Payload connectedSession established { "type": "connected" }outputTerminal output { "type": "output", "data": "..." }errorError message { "type": "error", "message": "..." }pongHeartbeat response { "type": "pong" }
The shell connects to the running container of the web service
Commands execute with the same permissions as the service process
The session automatically closes after 10 minutes of inactivity
Send ping messages periodically to keep the connection alive