API reference

Start a sandbox

View Markdown

POST/sandboxes/start

Request body

application/json

FieldTypeDescription
envobject
gatedFeaturesobjectGatedFeatures contains optional feature settings restricted to administrators.
image_idstringImageID optionally selects a READY organization-owned container image. When omitted, the sandbox is a Firecracker VM without a container.
lifetimeRequiredthundertypes.SandboxLifetime
namestringName is an optional label. It must be free of any other live sandbox in the organization and defaults to the assigned ID. It never addresses a sandbox: requests are made by ID.
network_policyRequiredthundertypes.SandboxNetworkPolicy
queuebooleanQueue waits for capacity without a scheduling timeout. Runtime TTL starts at readiness.
specRequiredthundertypes.SandboxResourceSpec
workspace_idstring

Responses

202 · Accepted
FieldTypeDescription
idRequiredstring
nameRequiredstring
workspace_idstring
400 · Bad Request
FieldTypeDescription
codeinteger
errorstring
messagestring
401 · Unauthorized
FieldTypeDescription
codeinteger
errorstring
messagestring
403 · Forbidden
FieldTypeDescription
codeinteger
errorstring
messagestring
409 · The sandbox would exceed one of the organization's quotas
FieldTypeDescription
codeinteger
errorstring
messagestring
quotathundertypes.QuotaExceeded
503 · The organization's quotas could not be checked, or concurrent changes kept the request from committing; retry
FieldTypeDescription
codeinteger
errorstring
messagestring

Operation specification

The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.