Endpoints
Create a machine
Create a Linux machine choosing a published template, size, and lifetime.
POST
Authentication
Send your scoped bearer token in theAuthorization: Bearer <BEAD_TOKEN> header, or send your API key in X-API-Key.
Parameters
string
Caller-generated durable retry key: lowercase ASCII letters, digits, and hyphens only. Reuse the same key and body after a connection failure. Minimum length:
1. Maximum length: 255.Request body
The JSON body is required.boolean
Internet access switch; false is rejected with 501 unsupported_feature.
boolean
default:false
Select persistent lifetime behavior with automatic pause; cannot be combined with explicit kind temporary.
boolean
default:true
Memory preservation for automatic pause; false is rejected with 501 unsupported_feature.
object
Auto-resume configuration for paused sandboxes.
integer
Requested CPU count; dimensions round up to the smallest supported size. Must be positive and agree with an explicit size.
object
Environment variables installed in the machine; names cannot be empty or contain = or NUL, and values cannot contain NUL. Additional keys accept
string values.object
Workload identity configuration; explicit values are rejected with 501 unsupported_feature.
integer | string
default:900
Seconds without activity before a persistent machine pauses, or never to disable idle pause. Persistent machines default to 900 seconds; numeric values must be 300–86400. Accepts
integer or string (“never”).string
Machine lifetime. Omission uses the template default; autoPause true or idle_timeout selects persistent behavior. Explicit temporary with autoPause true is rejected. Allowed values:
"temporary", "persistent".object | null
MCP configuration; non-null values are rejected with 501 unsupported_feature. May be
null.integer
Requested memory in MiB; dimensions round up to the smallest supported size. Must be positive and agree with an explicit size.
object
String key/value labels attached to the machine. Agent setup and credential references use reserved bead.* keys. Additional keys accept
string values.object
Network configuration object. This deployment rejects an explicit network configuration with 501 unsupported_feature.
string
default:"medium"
Machine size; defaults to medium when neither size nor CPU/memory dimensions are supplied. Allowed values:
"xs", "small", "medium", "large", "xlarge".string
required
Published template or ready snapshot ID returned by the template catalog.
integer
default:300
Funded execution timeout in seconds. Temporary machines expire at this deadline; persistent machines keep their state and require funded execution windows. Format:
int32. Minimum: 1. Maximum: 86400.object[]
At most one retained volume mounted at /data or /mnt/<name>. Maximum items:
1.Response
201
The sandbox was created successfully.string
Alias of the template
string
required
deprecated
Identifier of the client
string | null
Base domain where the sandbox traffic is accessible May be
null.string
Access token used for envd communication
string
required
Version of the envd running in the sandbox
string | null
End of the credit grace period as an RFC 3339 timestamp, or null when funded. May be
null.integer | string | null
Seconds without activity before a persistent machine pauses, or never to disable idle pause. Persistent machines default to 900 seconds; numeric values must be 300–86400. May be
null. Accepts integer or string (“never”).string
Lifetime policy: temporary expires at its timeout; persistent retains state until explicit deletion or the end of credit grace. Allowed values:
"temporary", "persistent".string | null
Most recent activity as an RFC 3339 timestamp, or null when no activity was recorded. May be
null.string
Current lifecycle state including running, idle-paused, waking, credit-grace, lost, or deleted. Allowed values:
"running", "idle-paused", "waking", "credit-grace", "lost", "deleted".string | null
Time the machine last paused as an RFC 3339 timestamp, or null when it has not paused. May be
null.string
required
Identifier of the sandbox
string
required
Identifier of the template from which is the sandbox created
string | null
Token required for accessing sandbox via proxy. May be
null.string | null
Reason for the last wake or lifecycle transition, or null when none is recorded. May be
null.object[]
Lifecycle or credit grace warnings attached to this machine. Additional keys accept
any values.
