Skip to main content
GET
/
templates
/
{namespace}
/
{name}
/
{version}
/
build
/
events
Stream build logs
curl --request GET \
  --url https://www.orgo.ai/api/templates/{namespace}/{name}/{version}/build/events \
  --header 'Authorization: Bearer <token>'
{
  "ts": "2023-11-07T05:31:56Z",
  "source": "<string>",
  "line": "<string>"
}
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 and closes when it reaches ready or failed. Each data: frame is a JSON object:
ts
string
Event timestamp (ISO 8601).
level
string
info, success, warn, or error.
phase
string
Build phase: publish, compile, boot, install, snapshot, record, archive, or ready. A cancelled or timed-out build ends on cancel or timeout.
source
string
Origin of the line, e.g. apt, pip, npm, or builder. Optional.
line
string
A single line of build output.

Path parameters

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

Example

curl -N https://www.orgo.ai/api/templates/default/claude-code/1.0.0/build/events \
  -H "Authorization: Bearer $ORGO_API_KEY"

Stream

data: {"ts":"2026-06-08T17:00:01Z","level":"info","phase":"boot","line":"booting build VM"}

data: {"ts":"2026-06-08T17:00:14Z","level":"info","phase":"install","source":"npm","line":"npm install -g @anthropic-ai/claude-code"}

data: {"ts":"2026-06-08T17:01:50Z","level":"info","phase":"archive","source":"builder","line":"uploading golden snapshot"}

data: {"ts":"2026-06-08T17:01:58Z","level":"success","phase":"ready","line":"golden snapshot ready in 118.4s"}

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:
publish,
compile,
boot,
install,
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.