E2B Sandbox API
Create, control, and tear down isolated Firecracker microVMs on demand for AI agents. Sandboxes cold-start in under 200ms and run for up to 24 hours, supporting pause/resume/snapshot, metadata, env vars, metrics, log streaming, and connect upgrades. The same surface backs the JavaScript and Python SDKs as well as the e2b CLI.
Documentation
Documentation
https://e2b.dev/docs
Documentation
https://e2b.dev/docs/sandbox
Documentation
https://e2b.dev/docs/sandbox/api/lifecycle
Documentation
https://e2b.dev/docs/sandbox/persistence
Documentation
https://e2b.dev/docs/sandbox/lifecycle-events-webhooks
Documentation
https://e2b.dev/docs/sandbox/lifecycle-events-api
Specifications
OpenAPI
https://raw.githubusercontent.com/api-evangelist/e2b-dev/refs/heads/main/openapi/e2b-api-openapi.yml
OpenAPI
https://raw.githubusercontent.com/api-evangelist/e2b-dev/refs/heads/main/openapi/e2b-events-openapi.yml