Poll build logs
GET /api/v1/profiles/{id}/builds/{buildId}/logs
GET
/api/v1/profiles/{id}/builds/{buildId}/logs
Returns incremental build log content for a specific profile build so API clients can watch queued and running builds.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Profile identifier.
buildId
required
string
Build identifier.
Query Parameters
Section titled “Query Parameters ” after
integer
Return chunks with an ID greater than this value. Start with 0 or omit it.
Responses
Section titled “ Responses ”Incremental build log payload.
object
status
required
string
chunk
required
Concatenated log output returned since the requested cursor.
string
next_after
required
Cursor value to send in the next polling request.
integer
done
required
True when the build is in a terminal state and there are no more log chunks to read.
boolean
Examples
Build is still queued
{ "status": "queued", "chunk": "", "next_after": 0, "done": false}Build is producing logs
{ "status": "running", "chunk": "starting nix build\\ncopying sources\\n", "next_after": 18, "done": false}Build completed and no more chunks remain
{ "status": "succeeded", "chunk": "build completed successfully\\n", "next_after": 24, "done": true}Invalid polling cursor.
object
error
required
string
Examples
Invalid after value
{ "error": "Invalid after value"}Missing or invalid API key.
object
error
required
string
Profile or build not found, or the build does not belong to the requested profile.
object
error
required
string
Examples
Missing build
{ "error": "Build not found"}