Skip to main content
GET
Stream build logs
Streams the build log as Server-Sent Events. Use it to render a live, Docker-style build console. The stream stays open for the duration of the build. When the build ends (succeeds, fails, or is cancelled), it sends a final event: end frame whose data is {}, then closes. Closing the connection tears down the upstream subscription.
The stream only carries a build that runs on the template registry host. Builds started with Build template or POST /templates?auto_build=true are queued for a dedicated build runner, which does not publish to this stream, so for those the call returns 404 with { "error": "no build in progress for this template" }. Poll Get build status instead.
The stream is scoped to your own templates, so a curated (system/…) ref returns 404.
Each data: frame is a JSON object:
string
Event timestamp (ISO 8601).
string
info, success, warn, or error.
string
Build phase, e.g. compile, boot, install, snapshot, record, archive, or ready.
string
Origin of the line, e.g. vm, orgo-init, or builder. Optional.
string
A single line of build output.

Path parameters

string
required
Template namespace.
string
required
Template name.
string
required
Version (semver).

Example

Stream

Errors

Errors arrive as a JSON body with the status below, not as an event frame. A 200 always carries Content-Type: text/event-stream.

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Path Parameters

namespace
string
required
name
string
required
version
string
required

Response

SSE stream of BuildEvent frames

One frame of the build-events SSE stream.

ts
string<date-time>
level
enum<string>
Available options:
info,
success,
warn,
error
phase
enum<string>
Available options:
queue,
publish,
compile,
boot,
settle,
install,
build,
snapshot,
record,
archive,
ready,
cancel,
timeout
source
string

Origin of the line, e.g. apt, pip, npm, builder.

line
string

A single line of build output.