Xeonr Developer Docs
API SpecificationApps

Tail App Logs

POST
/containers.api.v1.AppService/TailAppLogs

Streams an App's retained output, merged across replicas and tagged with the replica that produced each chunk, starting after from_offset. Replays at most limit history chunks (0 means 1000); with follow it then polls for new output every second, ending after 30 idle minutes when the App has no live replica. replica narrows to one replica.

Access: namespace VIEWER or above (read)

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

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/connect+json

appId?string
Length1 <= length <= 64
replica?string

Restrict to a single replica. Empty = every replica, merged.

Lengthlength <= 256
fromOffset?string

Resume after this cursor. 0 starts at the oldest retained chunk; a negative cursor reads the same as 0.

Formatint64
Range0 <= value
follow?boolean

Stay open and stream new output as it arrives. False returns the retained history and ends, which is what a one-shot fetch wants. validate:skip a bool has no bounds

limit?integer

Cap on history chunks replayed before live output begins. 0 = server default (1000). validate:skip no server-side ceiling; 0 means 1000

[key: string]?never

Response Body

application/connect+json

application/connect+json

curl -X POST "https://containers.xeonr.io/containers.api.v1.AppService/TailAppLogs" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/connect+json" \  -d ''
{
  "chunk": {
    "replica": "string",
    "data": "string",
    "stderr": true,
    "atUnix": "string",
    "offset": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}