Create sandbox
Create a sandbox from the template
Authorizations
Body
Identifier of the required template
Time to live for the sandbox in seconds.
x >= 0Automatically pauses the sandbox after the timeout
Controls the snapshot kind taken when the sandbox auto-pauses on timeout (only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only the filesystem (a filesystem-only snapshot); resuming it cold-boots (reboots) the sandbox from disk. Such a snapshot cannot be auto-resumed by traffic and must be resumed explicitly, so it cannot be combined with autoResume. Defaults to true (full memory snapshot).
Auto-resume configuration for paused sandboxes.
Secure all system communication with sandbox
Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config.
MCP configuration for the sandbox
Response
The sandbox was created successfully
Identifier of the template from which is the sandbox created
Identifier of the sandbox
Identifier of the client
Version of the envd running in the sandbox
Alias of the template
Access token for authenticating envd requests to this sandbox. Only returned when the sandbox is created with secure: true. Null for non-secure sandboxes (envd endpoints work without auth).
Token required for accessing sandbox via proxy.
Deprecated: always null. Construct sandbox URLs as https://{port}-{sandboxID}.e2b.app.