Skip to content

Stream build logs

GET/v5/builds/{build_id}/logs

Stream a build’s logs as Server-Sent Events.

The response has content-type text/event-stream; each event carries one log line as an AgentexCloudBuildLogLine object, delivered as lines become available from the cloud build provider. The stream ends when the provider stops producing output. Responds with a not-found error if no such build exists for the caller’s account.

Path ParametersExpand Collapse
build_id: string
ReturnsExpand Collapse
StreamChunk object { line }

A single log line from the build process.

line: string

The log line content

StreamChunk object { line }

A single log line from the build process.

line: string

The log line content

Stream build logs

curl https://api.egp.scale.com/v5/builds/$BUILD_ID/logs \
    -H "x-api-key: $SGP_API_KEY"
{
  "line": "line"
}
Returns Examples
{
  "line": "line"
}