E2B
communityOpen-source cloud runtime for AI agents with secure sandboxed code execution.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://api.e2b.dev/sandboxesCreate sandbox
Parameters
timeoutseconds (integeroptionaltemplateIDtemplate ID (stringrequiredReturns
sandboxID, clientID, templateIDPOST
https://api.e2b.dev/sandboxes/{sandboxID}/codeExecute code
Parameters
codecode (stringrequiredlanguagepython|javascript|bash (stringrequiredsandboxIDsandbox ID (stringrequiredReturns
stdout, stderr, error, results[]GET
https://api.e2b.dev/templatesList templates
Returns
templates[] with templateID, buildID, cpuCount, memoryMB, aliases[]