Skip to main content
New to Corsair? See API access, authentication, and error handling.

Checkpoints

create

checkpoints.create Save a running machine (memory and disk) as a named checkpoint, e.g. before a risky change; the machine keeps running. checkpoints.restore puts the machine back to it. Waits until it is “ready” unless waitUntilReady is false. Risk: write
Input Output

delete

checkpoints.delete Delete a checkpoint of a machine. The machine is not affected. Risk: destructive · Irreversible
Input Output

list

checkpoints.list List a machine’s checkpoints and whether each can be restored now. Risk: read
Input Output

restore

checkpoints.restore Put a machine back to a “ready” checkpoint: it reboots into the saved memory and disk, and everything since the checkpoint is lost. Returns once the machine runs again. Risk: destructive · Irreversible
Input Output

Files

download

files.download Read a file from a machine, as UTF-8 text or base64 for binary files. Risk: read
Input Output

list

files.list List a directory on a machine (not recursive). Risk: read
Input Output

makeDirectory

files.makeDirectory Create a directory on a machine, with any missing parents. An existing directory is fine. Risk: write
Input Output

remove

files.remove Delete a file, or a directory with recursive. 404 if the path does not exist. Risk: destructive · Irreversible
Input Output

stat

files.stat Get the type, size, mode and modification time of a path on a machine. 404 if it does not exist. Risk: read
Input Output

upload

files.upload Write a file on a machine, replacing any file at that path. Missing parent directories are created. Risk: write
Input Output

Machines

create

machines.create Create a machine: a fresh Ubuntu 24.04 VM (user boxd with sudo, Docker, Node, Python, Go, git), or a copy of a snapshot with fromSnapshot. It runs, and bills, until it is stopped, hibernated or deleted. Isolated by default. Risk: destructive
Input Output

delete

machines.delete Delete a machine for good: its disk, memory and processes are gone. Its snapshots stay. Risk: destructive · Irreversible
Input Output

exec

machines.exec Run a command on a machine as user boxd and wait for it: returns the exit code, stdout and stderr. Pass a shell line (“cd app && npm test”) or an argv array. A standby or hibernated machine wakes by itself; a stopped one needs machines.start first (409 otherwise). stdin is closed. Risk: destructive
Input Output

fork

machines.fork Fork a running machine: a new machine with a copy of its disk, memory and running processes. The fork keeps the source’s labels (merged with labels) and its isolation. Risk: destructive
Input Output

get

machines.get Get one machine by id or name: status, size, region, labels, URL and where it came from. Risk: read
Input Output

hibernate

machines.hibernate Hibernate a running or standby machine: memory and running processes go to disk and it stops using compute. machines.wake, machines.exec or a request to its URL bring it back as it was. The status can read “suspended” for a moment before “hibernated”. Risk: write
Input Output

list

machines.list List the org’s machines in one region, optionally only those with given labels. Risk: read
Input Output

pause

machines.pause Put a running machine in standby: memory stays in place and it resumes in about a millisecond, by itself on the next request or with machines.resume. Risk: write
Input Output

resume

machines.resume Resume a machine in standby (see machines.pause). Fails with 409 if it is not in standby. Risk: destructive
Input Output

start

machines.start Boot a stopped machine (a cold boot: the disk is kept, memory is not). Does nothing to a running one. Risk: destructive
Input Output

stop

machines.stop Shut a machine down. The disk is kept; memory and running processes are lost. machines.start boots it again. To keep processes, use machines.hibernate. Risk: destructive
Input Output

updateLabels

machines.updateLabels Add, change or remove a machine’s labels in one change. Returns the labels now in effect. Risk: write
Input Output

waitUntilReady

machines.waitUntilReady Wait until a machine is running and answers a command, e.g. after create or fork with waitUntilReady false. Risk: read
Input Output

wake

machines.wake Wake a hibernated machine with its memory and processes as they were. Does nothing to a running one. Risk: destructive
Input Output

Ports

expose

ports.expose Forward a raw TCP or UDP port of a machine (a database, SSH-like or game server, anything not HTTP) to a public port on the internet; at most 3 per machine. For HTTP use proxies.create. Exposing the same machine port again keeps its public port and changes only the protocol. Risk: write
Input Output

list

ports.list List raw TCP/UDP port forwards: one machine’s, or every machine’s when machineId is omitted. Risk: read
Input Output

unexpose

ports.unexpose Remove a raw port forward and free its public port; exposing it again may get another public port. Returns the forward that was removed. Risk: destructive
Input Output

Proxies

create

proxies.create Publish a port of a machine on its own public HTTPS URL, https://<name>.<machine>.boxd.sh, e.g. an API next to the app on the default route. Anyone with the URL can reach it: unlike the default route, a named route has no bot protection, so webhooks and API clients get through. A new route answers once its TLS certificate is issued, about 15 seconds. Risk: write
Input Output

delete

proxies.delete Remove a named HTTPS route from a machine. The default route stays; the port keeps running in the machine. Risk: destructive
Input Output

list

proxies.list List a machine’s HTTPS routes: its default route (https://<machine>.boxd.sh) and every named one, with the port each forwards to. Risk: read
Input Output

setPort

proxies.setPort Point a route at another port in the machine. Without name it changes the default route, which also takes “auto”: boxd then follows the port the app listens on (80, 443, 8080, 8000, 3000, 5000, 5173). Risk: write
Input Output

Snapshots

create

snapshots.create Save a running machine’s disk and memory as a named snapshot; the machine keeps running. Saving over an existing name makes a new version that new machines get from then on, and the org keeps only its newest versions, so an old one can be dropped. machines.create with fromSnapshot makes new machines from it. Risk: destructive
Input Output

delete

snapshots.delete Delete a snapshot and every version it keeps. Machines made from it are not affected. Risk: destructive · Irreversible
Input Output

get

snapshots.get Get one snapshot by name or id. Risk: read
Input Output

list

snapshots.list List the org’s snapshots in one region. Risk: read
Input Output