Skip to Content
Xeonr Developer Docs
API SpecificationBuild logs

Read a version's build log

POST
/xeonr.functions.v2.BuildLogsService/GetBuildLog

Returns a version's build output from offsetBytes onward, with the offset to send next (nextOffsetBytes) and the version's current state. Output is stored while the build runs, about twice a second. Call again with the returned offset until complete is true. A static version builds nothing, so it is complete at once with an empty log. An offset past the end returns no output.

Needs the viewer role in the owning team. Callable with a console session or a team API key (Authorization: Bearer xk_…).

Required scopes: functions:functions:read

Authorization

BearerAuth
AuthorizationBearer <token>

A team API key, created by a team admin in the console and presented as Authorization: Bearer xk_…. Xeonr Auth issues and verifies it; the secret is shown once at creation and stored only as a hash, and a revoked key stops working within 30 seconds. An existing fnt_… token is accepted the same way.

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

functionId?string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 64
versionId?string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 64
offsetBytes?|

offset_bytes is where to read from. Send back next_offset_bytes to follow a running build.

Formatint64
Range0 <= value
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.BuildLogsService/GetBuildLog" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "chunk": "npm ci\nadded 214 packages in 6s\n",
  "nextOffsetBytes": "34",
  "complete": "true",
  "state": "VERSION_STATE_READY"
}