Basic Information

appmixer.e2b.core.CreateSandbox

1.0.0

Public

Create a new E2B sandbox from a template. Returns the sandbox ID used by the other components.

Input Ports

in

FieldTypeDescription
Template ID text The sandbox template to use. Pick one from the list (public templates and your team templates) or enter a template ID or name. Use code-interpreter-v1 if you plan to use the Run Code component.
Timeout (seconds) number How long the sandbox stays alive before it is automatically killed, in seconds. Defaults to 300 (the API default is only 15 seconds). Sandboxes are ephemeral - set a generous timeout if you plan to use the sandbox in later components.
Metadata (JSON) textarea Optional JSON object of custom key/value metadata to attach to the sandbox, e.g. {"userId": "42"}.
Environment Variables key-value Optional environment variables available inside the sandbox, e.g. NODE_ENV = production.

Output Ports

out

FieldTypeDescription
Sandbox ID string -
Template ID string -
Client ID string -
Alias string -
envd Version string -

Full Metadata