Skip to main content
POST
Build template
Builds the golden snapshot for a version: Orgo boots a VM, runs the build steps and app installs, then captures a paused snapshot. A built template launches in seconds; an unbuilt one cannot launch at all. This call is asynchronous - it returns immediately with 202 Accepted. Track progress by polling Get build status or streaming build logs. A typical build takes around two minutes.
Building templates requires a Scale plan. You can also build at publish time with POST /templates?auto_build=true.

Path parameters

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

Response

string
Template ref.
string
Content-addressed digest being built.
string
Build state: building, ready, failed, or not_built. A fresh build returns building; if an identical digest is already built, you get ready immediately with reused: true.
boolean
true when an existing golden with the same digest was reused instead of rebuilt.

Example

Response

Cancel a build

Send a DELETE to the same build path to cancel an in-flight build. It returns 202 with { "status": "cancelling" }, or 404 with { "status": "idle" } when nothing is building.

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 started (or reused)

ref
string
digest
string
status
enum<string>
Available options:
ready,
building,
failed,
not_built
golden_dir
string
build_time_ms
integer

Build duration in milliseconds. Present when ready.

reused
boolean

Whether an existing golden with the same digest was reused.

error
string

Failure reason. Present when status is failed.