Terminal WebSocket
GET /api/v1/projects/{projectId}/{agentType}/ws/{wid}
GET
/api/v1/projects/{projectId}/{agentType}/ws/{wid}
Upgrades to a WebSocket connection and bridges it to a tmux terminal session inside the container via docker exec. Binary frames carry raw PTY data; text frames carry JSON control messages (e.g. {“type”:“resize”,“cols”:80,“rows”:24}).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
string
Project ID
wid
required
string
Worktree ID
Responses
Section titled “ Responses ”WebSocket upgrade
Bad Request
object
code
string
error
string
Not Found
object
code
string
error
string
Terminal proxy not configured
object
code
string
error
string