Access
Terminal Sessions
Open managed interactive PTY sessions for real shell access.
Terminal sessions are Quilt’s interactive shell surface.
Use them when a human needs a real PTY instead of a fire-and-forget command.
Managed terminal session routes:
GET /api/terminal/sessions
POST /api/terminal/sessions
GET /api/terminal/sessions/<session_id>
DELETE /api/terminal/sessions/<session_id>
POST /api/terminal/sessions/<session_id>/resize
GET /ws/terminal/attach
Create Payload
{
"container_id": "ctr_123",
"cols": 120,
"rows": 40,
"shell": "/bin/bash"
}
Important Semantics
- create returns
201 - the response includes
attach_url - the websocket attach route requires the
terminalsubprotocol - the websocket path can attach an existing session or create one when
session_idis omitted andcontainer_idis supplied - terminal sessions are tenant-scoped and capped per tenant
When to Use Them
Use terminal sessions for interactive shell behavior. Use /stream for live non-PTY output and exec jobs for submit-and-track commands.
