Test-run a template
Boot a short-lived preview computer from a template ref.
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.
template_ref instead. That is the durable path, and it counts toward the workspace owner’s computer quota. A preview does not.Request body
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 four added fields:desktop_id, desktop_api_token, public_host and launch.
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./bash, /terminal, /events. Send it verbatim. Equal to vnc_password.hypervisor, cpu, host_cpu, qemu, machine, boot, fallback, state), without the host’s name or the source its state was restored from. Absent when the host does not report one.DELETE also accepts this value.WIDTHxHEIGHTxDEPTH.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.
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
"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.
The preview's id on the fleet host. DELETE /templates/run also accepts it.
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.
Public hostname of the fleet host the preview was placed on.
Bearer token for the computer's Desktop API. Equal to vnc_password.
The computer's address on the host's private network.
Host port serving noVNC / websockify.
Host port serving the Desktop API.
The template's public internal ports mapped to the host ports they were published on. Absent when the template exposes none.
How the host launched the preview, without the host's name. Absent when the host does not report it.