Templates
Test-run a template
Boot a short-lived preview computer from a template ref.
POST
Test-run a template
Boots a short-lived, auto-reaped computer from a template
See Create computer for the full connection model.
ref. This is the same in-editor “Run” that the dashboard uses to test a template before sharing it. The preview is reclaimed automatically, so a missed stop won’t leak a computer.
Test-runs require a Scale plan or higher: the preview is the authoring build-test, so it is gated the same way as publish and build. For a persistent computer, use Create computer with
template_ref instead. That is the durable path, and it counts toward the workspace owner’s computer quota. A preview does not.Request body
string
required
Template ref to boot, in
namespace/name@version form. Your own (default/…) or a curated (system/…) ref. The template’s build must be ready. A missing or malformed ref returns 400.Response
Returns the preview computer you connect to exactly like any other. The body is the fleet’s create-computer shape plus three added fields.string
The preview’s identifier in Orgo. Use it as the
instance_id in connection URLs (https://www.orgo.ai/desktops/{instance_id}/ws/websockify, …/ws/terminal, …/ws/audio), and pass it back to stop the run.string
Bearer token for the computer’s Desktop API:
/bash, /terminal, /events. Send it verbatim. Equal to vnc_password.string
Public hostname of the fleet host this preview was placed on.
string
The preview’s id on the fleet host.
DELETE also accepts this value.string
Current status.
string
VNC / WebSocket token for the preview.
string
The computer’s address on the host’s private network.
integer
Host port serving noVNC / websockify.
integer
Host port serving the Desktop API.
string
Display resolution,
WIDTHxHEIGHTxDEPTH.integer
vCPU count the preview booted with.
integer
RAM in MB.
integer
Disk in GB.
integer
Network bandwidth cap in Mbps.
boolean
Whether the audio device is enabled.
object
Map of the template’s public
internal ports to the host ports they were published on. Absent when the template exposes no public ports.Example
Stop a test-run
DELETE /templates/run?id={instance_id} stops the preview and reclaims it. Pass the desktop_id from the run response, or the id. The call is scoped to you, so an id you don’t own is a no-op.
Returns 200 { "deleted": true }, including when the preview was already gone. Omitting id returns 400 { "error": "id required" }, and a request with no Authorization header returns 401 { "error": "Authentication required" }. Any other upstream failure is forwarded with its own status and { "error": string }. Previews are also reaped automatically.
Errors
Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Body
application/json
Example:
"default/my-template@1.0.0"
Response
Preview computer booted
A short-lived preview computer booted from a template ref. Connect to it like any computer; it is auto-reaped.