Skip to content
Navigation

openTerminal

GET
/api/v1/agents/{agentId}/terminal

WebSocket upgrade to an interactive shell in the sandbox (operator role). A sleeping agent is woken. Binary messages carry terminal input and output. Text messages are JSON: the client sends {"type":"resize","cols":N,"rows":N}; the server sends {"type":"status","message":"..."} while waking, {"type":"exit","code":N} and {"type":"error","message":"..."}.

Authorization

  • session
    optional
    API key in cookie
  • token
    optional
    HTTP Bearer

    Authorization: Bearer <token>

Path parameters

  • agentId
    string
    required

Query parameters

  • cols
    optional
    integer
  • rows
    optional
    integer
  • auth
    optional
    string

    Run this harness login method (agent admin) instead of a shell.

Returns

101

Switching to WebSocket.

403

Error.
JSON
  • error
    string
    required

404

Error.
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close