Runtime

Manage environments and infrastructure.

Configure domains, environment variables, and servers. Manage release asset manifests and inspect deployment records.

Run commands synchronously, stream their output, or start background commands. Use the sandbox ID to access files, command results, and the terminal.

Use the file endpoints and terminal endpoint to work in the same sandbox. Health, readiness, and heartbeat endpoints support sandbox monitoring. See WebSocket connections for terminal WebSocket access.

Cache entries are read, written and deleted under /cache/entries.

Environments · Servers · Sandboxes · Cache

Environments

Create and manage deployment environments. Use the environment ID when configuring deployments, domains, variables, or servers.

Create, read, update, or delete domains for an environment.

List, create, read, write, update, or delete environment variables.

EndpointMethodsDescription
/projects/{project_reference}/environmentsGET, POSTList environments; Create environment
/projects/{project_reference}/environments/{environment_id}GET, PATCH, DELETEGet environment; Update environment; Delete environment
/projects/{project_reference}/environments/{environment_id}/domainsGET, POSTList environment domains; Create environment domain
/projects/{project_reference}/environments/{environment_id}/domains/{domain_reference}GET, PATCH, DELETEGet environment domain; Update environment domain; Delete environment domain
/projects/{project_reference}/environments/{environment_id}/variablesGET, POSTList environment variables; Create environment variable
/projects/{project_reference}/environments/{environment_id}/variables/{key}GET, PUT, PATCH, DELETEGet environment variable; Write environment variable; Update environment variable; Delete environment variable

Servers

Create, list, read, or delete dedicated servers. Without project_reference, these routes act on the servers you own; with it, on one project's servers with that project's checks.

Link or unlink environments from a server.

Create a server for an environment. POST /servers with project_reference runs the same checks.

EndpointMethodsDescription
/serversGET, POSTList servers; Create server
/projects/{project_reference}/environments/{environment_id}/serversPOSTCreate server in environment
/servers/{server_id}GET, DELETEGet server; Delete server
/servers/{server_id}/environments/{environment_id}POST, DELETELink environment to server; Unlink environment from server

Sandboxes

Create, list, get, update, or delete sandboxes.

Get redacted environment snapshots.

Run commands and inspect command output.

Open a sandbox terminal.

Check sandbox health, readiness, and heartbeat state.

EndpointMethodsDescription
/sandboxesGET, POSTList sandboxes; Create sandbox
/sandboxes/{sandbox_id}GET, PATCH, DELETEGet sandbox; Update sandbox lifetime; Delete sandbox
/sandboxes/capabilitiesGETGet sandbox capabilities
/sandboxes/{sandbox_id}/commandsGET, POSTList sandbox background commands; Start sandbox background command
/sandboxes/{sandbox_id}/commands/{command_id}GETGet sandbox background command
/sandboxes/{sandbox_id}/commands/{command_id}/outputGETGet sandbox background command output
/sandboxes/{sandbox_id}/commands/{command_id}/cancelPOSTCancel sandbox background command
/sandboxes/{sandbox_id}/commands/runPOSTRun sandbox command
/sandboxes/{sandbox_id}/commands/streamPOSTStream sandbox command
/sandboxes/{sandbox_id}/environmentGETGet sandbox environment snapshot
/sandboxes/{sandbox_id}/heartbeatPOSTUpdate sandbox activity
/sandboxes/{sandbox_id}/healthzGETCheck sandbox health
/sandboxes/{sandbox_id}/readyzGETCheck sandbox readiness
/sandboxes/{sandbox_id}/terminalGETOpen sandbox terminal

Cache

List, read and write cache entries one at a time or in batches of up to 100, and delete one entry or every entry matching a pattern.

EndpointMethodsDescription
/projects/{project_reference}/cache/entriesGET, DELETEList cache entries; Delete cache entries
/projects/{project_reference}/cache/entries/{key}GET, PUT, DELETEGet cache entry; Write cache entry; Delete cache entry
/projects/{project_reference}/cache/entries/readPOSTRead cache entries
/projects/{project_reference}/cache/entries/writePOSTWrite cache entries

Back to REST API reference