Skip to main content
POST
Activate a sandbox

Authorizations

X-API-Key
string
header
required

Path Parameters

sandbox_id
string
required

The unique identifier of the sandbox. Public sandbox ID: a bare UUID, or the region-tagged form sb-<region>-<uuid> (e.g. sb-use-1b4e28ba-…). Treat as an opaque string; the tagged form routes the request to the sandbox's home region. Endpoints accept both forms interchangeably.

Pattern: ^(sb-[a-z0-9]+-)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Response

The sandbox is active.

Single-sandbox shape — SandboxListItem plus access_token and bound secrets.

placement
object

Optional compute placement. Omission preserves the receiving cell's default placement. AWS placement requires account enablement; unavailable capacity returns an error without falling back to another cloud.

endpoint
string<uri>

Data-plane origin for this sandbox when it differs from the default. Use this origin for execution, file and terminal operations. Preview hosts use the same hostname suffix.

id
string

Public sandbox ID: a bare UUID, or the region-tagged form sb-<region>-<uuid> (e.g. sb-use-1b4e28ba-…). Treat as an opaque string; the tagged form routes the request to the sandbox's home region. Endpoints accept both forms interchangeably.

Pattern: ^(sb-[a-z0-9]+-)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
name
string
status
enum<string>

Current state of the sandbox. active means running; paused means paused and awaiting resume. pausing, resuming and migrating are transient states observed while the platform pauses, restores, or relocates a sandbox (e.g. after a 202 from /pause, or auto-resume on /exec); clients should poll or retry shortly. failed means the sandbox can no longer be resumed.

Available options:
active,
pausing,
paused,
resuming,
migrating,
failed
vcpu_count
integer
memory_mib
integer
memory_max_mib
integer

Memory ceiling for live growth; absent when memory is fixed.

memory_current_mib
integer

Memory the sandbox last held, between memory_mib and memory_max_mib; compute is billed at this size. Absent when memory is fixed.

memory_shrink_after_seconds
integer<int32>

How long, in seconds, memory must stay low after growing before it shrinks back. Absent when the platform default applies.

vcpu_max
integer

CPU ceiling for live growth; absent when the CPU count is fixed.

snapshot_id
string<uuid>

ID of the latest snapshot (present after a pause).

source_snapshot_id
string<uuid>

The saved snapshot the sandbox was created from, when it was.

created_at
string<date-time>
timeout_seconds
integer<int32>

Auto-pause timeout in seconds, if configured. Absent when auto-pause is disabled.

idle_timeout_seconds
integer<int32>

Idle timeout in seconds, if configured. Absent when the sandbox is never paused for being idle.

auto_delete_seconds
integer<int32>

Garbage-collection window for the paused state, if configured. Absent when auto-delete is disabled.

auto_delete_at
string<date-time>

When the sandbox will be deleted. Present only while the sandbox is paused with auto_delete_seconds configured. The deadline is armed when the sandbox pauses (or when the setting is applied to an already-paused sandbox) and cleared on resume.

network
object

Current egress allow/deny rules, if any have been configured. Absent when the sandbox uses default network settings.

metadata
object

User-supplied tags attached at creation. Always present — sandboxes created without metadata return {} rather than being absent.

Example:
preview_access
enum<string>

Default access for newly published ports. public and private are strict modes; existing published rows keep their own access. legacy_public may be returned for an older sandbox and preserves all-port behavior until updated to a strict mode.

Available options:
legacy_public,
public,
private
routing_hint
string

Optional signed logical-owner routing hint. Send on data-plane requests as X-Superserve-Routing-Hint, or as a route. WebSocket subprotocol alongside the unchanged access token. Refresh after resume/activate; absent or invalid hints retain ownership lookup fallback. This does not authorize access.

access_token
string

Per-sandbox access token for data-plane operations (file upload/download, terminal). Pass as the X-Access-Token header.

secrets
object[]

Credentials bound to this sandbox. Each entry maps an env-var name visible to the agent to the secret name it resolves to. revoked=true when the underlying secret has been soft-deleted (the env var still holds the now-useless proxy token).