Skip to main content
POST
Test-run a template
Boots a short-lived, auto-reaped computer from a template 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.
See Create computer for the full connection model.

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

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Body

application/json
ref
string
required
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.

id
string

Underlying VM id.

desktop_id
string

Ephemeral desktop id. Use it for same-origin connection URLs and to stop the run via DELETE /templates/run?id=.

status
string
vnc_password
string
public_host
string
resolution
string