Open terminal session (WebSocket)
Open an interactive terminal (shell) session to a running application process.
This is a WebSocket endpoint. Connect using a WebSocket client with the Upgrade: websocket header. Standard HTTP requests return a 426 Upgrade Required response.
Connection
wscat -c "wss://api.sevalla.com/v3/applications/{id}/processes/{process_id}/terminal?shell=bash" -H "Authorization: Bearer <api_key>"
Authentication runs before the WebSocket upgrade - invalid credentials are rejected with a standard HTTP 401/403 response.
Communication
Once connected, the WebSocket streams stdin/stdout bidirectionally to a shell running inside the container. Send text messages as shell input and receive command output as text messages.
Close codes
4000- Application or process not found4001- No running pod available to connect to4002- Shell stream error4003- Shell stream closed normally4005- Failed to connect to the pod4300- Unexpected server error
Documentation Index
Fetch the complete documentation index at: https://api-docs.sevalla.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Application identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Process identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Query Parameters
Shell to use for the terminal session. sh - Bourne shell (default). bash - Bourne Again Shell. dash - Debian Almquist Shell. ksh - KornShell. zsh - Z Shell. csh - C Shell. tcsh - TENEX C Shell.
sh, bash, dash, ksh, zsh, csh, tcsh