Xeonr Developer Docs
API SpecificationConsole Sessions

AttachConsole

POST
/containers.api.v1.ConsoleService/AttachConsole

AttachConsole is the interactive path: first message selects the session, subsequent messages are stdin/resize, and the server streams output from the requested offset (replaying scrollback first). Browsers can't do bidi over connect-web, so the console reaches this through the api's /ws/console bridge; native clients use it directly.

Authorization

BearerAuth
AuthorizationBearer <token>

A namespace-scoped API key (cpk_…) for machines, or a Xeonr Auth OIDC token for humans. The key's namespace and role are pinned server-side.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/connect+json

resize*
[key: string]?never

Response Body

application/connect+json

application/connect+json

curl -X POST "https://containers.xeonr.io/containers.api.v1.ConsoleService/AttachConsole" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/connect+json" \  -d '<resize/>'
{
  "exit": {
    "code": 0,
    "state": "CONSOLE_SESSION_STATE_UNSPECIFIED"
  }
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}