{ items, nextToken? }; pass the returned token as query.nextToken to fetch the next page. templates.get returns its build cursor beside the template data. Sandbox listing also returns totalRunning when E2B supplies it. Secret values are write-only and are redacted from errors and never included in event logs.
What you get:
- 62 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the E2B API key before the first call: More: API Key
pnpm corsair setup --plugin=e2b --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
Read the environment of a sandboxWhat’s next
API reference
Every
e2b.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.