Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.TaskService

List task run logs

POST
/xmb.api.v1.TaskService/ListTaskRunLogs

Returns a task run's log in order. Pass the previous response's cursor as after_id to fetch only what is new.

Required scopes: xmb:admin

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

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/json

runUuid?string
Formatuuid
serverSlug?string
Length1 <= length <= 128
afterId?string

Return only lines after this id — pass back the highest id already seen to tail a running task without refetching what you have. int64.gte = 0

Formatint64
minLevel?string

Lines below this level are omitted.

Value in"TASK_LOG_LEVEL_UNSPECIFIED" | "TASK_LOG_LEVEL_DEBUG" | "TASK_LOG_LEVEL_INFO" | "TASK_LOG_LEVEL_WARN" | "TASK_LOG_LEVEL_ERROR"
stageKey?string

Narrow to one step. Optional.

Lengthlength <= 64
pageSize?integer

Defaults to 200, capped server-side.

Formatint32
Range0 <= value
newestFirst?boolean

Read backwards from the end instead of forwards from the start.

A task that logs a line per file runs to six figures, and the interesting part of a run that has just failed is the end of it. Without this, reaching that end means paging through everything before it — so the ordinary act of opening a finished run would be a thousand round trips.

beforeId?string

With newest_first, return only lines before this id — pass back the lowest id already seen to read further back. Ignored otherwise. int64.gte = 0

Formatint64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.TaskService/ListTaskRunLogs" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "lines": [
    "map[fields:map[folders:1204 hub:3b9e6f0a-1c2d-4e5f-8a7b-6c5d4e3f2a10] id:48912 level:TASK_LOG_LEVEL_INFO message:Read 1,204 of 2,880 folders on Living room. stageKey:walk timestamp:2026-10-22T04:24:27Z]"
  ],
  "cursor": "48912",
  "total": "48912"
}