Templates
Build template
Bake a template version into a golden snapshot.
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
Template namespace.
Template name.
Version (semver) to build.
Response
Template ref.
Content-addressed digest being built.
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.true when an existing golden with the same digest was reused instead of rebuilt.Example
Response
Cancel a build
Send aDELETE 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
| Status | Meaning |
|---|---|
401 | Missing or invalid API key. |
403 | Building requires a Scale plan or higher. |
404 | No such template version. |
429 | Build rate limit or host capacity reached. Back off and retry. |
Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Response
Build started (or reused)
Available options:
ready, building, failed, not_built Build duration in milliseconds. Present when ready.
Whether an existing golden with the same digest was reused.
Failure reason. Present when status is failed.
Build template