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 (wss://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. 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: the fleet's create-computer shape plus desktop_id, desktop_api_token, and public_host. Connect to it like any computer; it is auto-reaped.

id
string

The preview's id on the fleet host. DELETE /templates/run also accepts it.

desktop_id
string

The preview's identifier in Orgo. Use it as the instance_id in connection URLs and pass it to DELETE /templates/run?id= to stop the run.

status
string
vnc_password
string
public_host
string

Public hostname of the fleet host the preview was placed on.

resolution
string
desktop_api_token
string

Bearer token for the computer's Desktop API. Equal to vnc_password.

ip
string

The computer's address on the host's private network.

novnc_port
integer

Host port serving noVNC / websockify.

api_port
integer

Host port serving the Desktop API.

vcpus
integer
mem_mb
integer
disk_size_gb
integer
bandwidth_limit_mbps
integer
audio_enabled
boolean
template_ports
object

The template's public internal ports mapped to the host ports they were published on. Absent when the template exposes none.