Skip to main content
GET
Get build status
Returns the current build state of a version. Poll this after Build template until status is ready or failed. Reading status is not plan-gated. A curated ref resolves too: pass the system namespace, e.g. system/coding/1.0.3, to read the build state of a curated template.

Path parameters

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

Response

string
One of:
  • not_built: no golden snapshot yet, or the last queued build was cancelled. Call Build template.
  • building: a build is queued or running.
  • ready: built and launchable.
  • failed: the last build failed. See error.
string
Template ref.
string
Content-addressed digest.
integer
Build duration in milliseconds. Present once a queued build has finished.
string
Failure reason. Present when status is failed.
The fields below are present when the version was built through the build queue, which is how Build template builds your own templates. They are absent for curated templates and for versions built before the queue.
string
ID of the newest build job for this version.
string
Job phase. queued while waiting for a runner, retrying while waiting after a failed attempt.
integer
How many times a runner has attempted the job.
string
ISO 8601 timestamp of when the job was queued.
string
ISO 8601 timestamp of when the job finished, or null while it is in flight.

Example

Response

Errors

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

Build status

ref
string
digest
string

Content-addressed digest.

status
enum<string>

not_built: no golden snapshot yet, or the last queued build was cancelled. building: queued or running. ready: launchable. failed: see error.

Available options:
ready,
building,
failed,
not_built
build_time_ms
integer

Build duration in milliseconds. Present once a queued build has finished.

error
string

Failure reason. Present when status is failed.

job_id
string

ID of the newest build job for this version. Present for versions built through the build queue only, as are the fields below.

phase
string

Job phase. queued while waiting for a runner, retrying while waiting after a failed attempt.

attempts
integer

How many times a runner has attempted the job.

queued_at
string<date-time>
finished_at
string<date-time> | null

null while the job is in flight.