Skip to main content
GET
Get a sandbox

Authorizations

Authorization
string
header
required

Bearer token for the authenticated caller.

Headers

akua-context
string

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53
Example:

"ws_j572abc123def4"

Path Parameters

id
string
required

Sandbox id (sbx_...).

Pattern: ^sbx_[A-Za-z0-9]{1,64}$
Example:

"sbx_j572abc123def456"

Response

Sandbox

id
string
required

Sandbox id (sbx_...).

Pattern: ^sbx_[A-Za-z0-9]{1,64}$
Example:

"sbx_j572abc123def456"

workspace_id
string
required
Required string length: 1 - 53
name
string
required

Display name.

Required string length: 1 - 100
Example:

"checkout-service"

state
enum<string>
required

ACTIVE sandboxes run commands and file operations. SUSPENDED sandboxes keep their files and cost only storage. -ING states are in flight; FAILED sandboxes can only be deleted.

Available options:
PROVISIONING,
ACTIVE,
SUSPENDING,
SUSPENDED,
RESUMING,
DELETING,
FAILED
size
enum<string>
required

Compute size. standard is the only size today; larger sizes are added as new values.

Available options:
standard
source
object | null
required

null for a sandbox created empty.

network_policy
object
required

Outbound network access. allow_all means public internet only: HTTP on TCP port 80, TLS on TCP port 443 (including HTTPS), and public DNS. Private, link-local, cluster-internal and execution-cluster node addresses are blocked. Cluster DNS names and other ports or protocols are unavailable.

idle_timeout_seconds
integer
default:600
required

Seconds without API activity after which the sandbox suspends itself. Commands that are still running keep it awake. 300 to 86400; default 600.

Required range: 300 <= x <= 86400
Example:

600

env
object
required
labels
object
required
created_by
object
required
usage
object
required
conditions
object[]
required

What needs attention now; empty when nothing does. Reasons:

  • create-failed (error): the sandbox could not be created; it is FAILED and can only be deleted.
  • suspend-failed (warning): the last suspend failed; the sandbox stays ACTIVE.
  • resume-failed (warning): the last resume failed; the sandbox stays SUSPENDED.
Maximum array length: 32
last_active_at
integer | null
required

Last API activity (Unix seconds).

Required range: x >= 0
created_at
integer
required

Creation time (Unix seconds).

Required range: x >= 0
updated_at
integer
required

Last change (Unix seconds).

Required range: x >= 0
etag
string
required

Opaque version token. Send it as If-Match on writes.