In short.
E2B's List sandboxes guide helps Python and JavaScript developers find running and paused sandboxes, but fetching one page may leave results unseen. It documents state, metadata, template and start-time filters; sorting before pagination; and continuation tokens. The examples show how to retrieve individual pages or collect all results. The guide also warns that the deprecated GET /sandboxes endpoint fails when more than 5,000 running sandboxes match. Installation, authentication, minimum SDK versions, costs and runtime reliability are not established. No code was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://docs.e2b.dev/sandbox/list.md], including Python and JavaScript/TypeScript examples, all documented filters, sorting, pagination, sample output, the connection note and the legacy-endpoint warning. The linked documentation index, connection guide and API reference are excluded. Installation, authentication, SDK compatibility, pricing, licensing and live behavior remain unestablished where the page supplies no evidence. No code was executed.
The overview
Identity
This is E2B's documentation page for listing sandboxes through its SDK [https://docs.e2b.dev/sandbox/list.md]. It is a focused programming guide with parallel Python and JavaScript/TypeScript examples.
Its scope is discovering running and paused sandboxes, filtering results and retrieving them in pages. It does not provide a general introduction to E2B.
Assessment
The guide is useful when the immediate task is finding particular sandboxes or retrieving a complete list. It explains consequential details: the default sort is newest first, sorting happens before pagination, and each page contains at most 100 items.
It assumes familiarity with the SDK and leaves installation, authentication and operational error handling unexplained. Its examples establish documented usage, not measured reliability or performance.
Users
The examples suit developers using E2B from Python, JavaScript or TypeScript. Potential uses include building sandbox inventories and finding sessions tagged for a particular application, environment or user.
Beginners can follow the progression from the first page to filtered and complete listings, but will need separate guidance to configure SDK access.
Capabilities
Sandbox.list() lists running and paused sandboxes. Documented filters cover either or both states, metadata key-value pairs, a template ID or alias, and sandboxes started at or after a specified timestamp.
Results can be sorted by start time in ascending or descending order. Examples read sandbox metadata, ID, start time and template ID, and demonstrate continuation tokens and loops that fetch every page.
Using it
Requirements
The examples import Sandbox from the e2b package. Python filtering examples also use SandboxQuery and SandboxState; the start-time example uses a timezone-aware datetime.
The page assumes SDK access is already configured. Installation commands, credentials, account requirements, supported runtime versions and minimum SDK versions are unknown from this page. The warning recommends the latest SDK without naming a version.
Mechanism
Sandbox.list() returns a paginator, an object that retrieves results one page at a time. JavaScript uses nextItems(), hasNext and nextToken; Python uses next_items(), has_next and next_token.
The default and maximum page size are 100. A continuation token can specify where to resume. Start-time sorting applies to the complete result set before it is divided into pages, with descending order as the default.
Setup
Once SDK access is configured, the listing-only examples begin by importing Sandbox and calling Sandbox.list(). Other examples create a sandbox with metadata to provide something to retrieve.
Choose the relevant query filters, optionally set order and limit, then fetch a page through the paginator. Configuring credentials and installing a compatible SDK require information outside this page.
Example
The metadata example creates a sandbox labelled env='dev', app='my-app' and userId='123'. It then queries for userId='123' together with env='dev'; the app label is not included in that query.
In JavaScript, Sandbox.list({ query: { metadata: { userId: '123', env: 'dev' } } }) creates the paginator, and await paginator.nextItems() retrieves its first page. Additional pages must be fetched to obtain every match. This is a documentation example; no code was executed.
Assessment & evidence
Limitations
A single page may omit additional matching sandboxes. Only running and paused states are documented; discovery of terminated sandboxes or historical sessions is not established.
The page does not describe rate limits, retries, token expiry, access boundaries or whether results remain consistent while sandboxes change state. Its collect-all examples accumulate results in a client-side list.
The deprecated GET /sandboxes endpoint returns running sandboxes in one response and produces 400 Bad Request when more than 5,000 match. That warning does not establish a total-result limit for Sandbox.list().
Reasoning
The strongest practical value is avoiding incomplete or incorrectly ordered inventories: fetching the first page is different from fetching all matches, and default descending order places newer sandboxes first.
Metadata filters offer a documented way to narrow results using labels assigned during creation. Start-time filtering is inclusive, so a sandbox at the supplied timestamp falls within the stated boundary.
Alternatives
The page names GET /v2/sandboxes as the direct API alternative to Sandbox.list() [https://docs.e2b.dev/api-reference/sandboxes/list-sandboxes-v2]. The linked reference is outside the supplied evidence, so its detailed request and response contract is not assessed.
The older GET /sandboxes endpoint is explicitly deprecated. The page provides no comparison with other sandbox services or libraries.
Evidence
The evidence is the complete supplied List sandboxes page at its original address [https://docs.e2b.dev/sandbox/list.md]. It contains both language examples, illustrative output, filter definitions, sorting rules, pagination instructions and the legacy-endpoint warning.
The sample IDs and timestamps illustrate output structure. They are not observed execution results. The linked documentation index, connection guide and API reference are excluded; installation instructions are absent from this page. Runtime behavior was not assessed.
Access & freshness
Costs
The page supplies no prices, free allowances, billing rules or API charge information. Costs for listing requests and for creating or retaining the example sandboxes are unknown.
The 100-item page limit is a retrieval constraint, not evidence of a pricing tier or usage allowance.
Rights
The supplied page states no licence or redistribution terms for its text or code examples. Permissions to copy, modify or redistribute those materials are unknown from this evidence.
The page also does not establish the SDK's licence or E2B service terms.
Freshness
The supplied documentation snapshot was captured on 23 November 2026 at 23:34:26.656 UTC. The page gives no publication date, last-update date or numbered SDK release.
Its deprecation notice directs users toward the paginated endpoint or Sandbox.list() in the latest SDK. Compatibility with a particular installed SDK version remains unknown.
Actions
Before adopting the examples, confirm SDK compatibility and obtain the missing installation, authentication and pricing details. Choose filters that match the intended inventory and set the sort order explicitly when chronology matters.
For a complete listing, continue until the paginator reports no next page. If maintaining an integration that uses deprecated GET /sandboxes, use the page's recommended Sandbox.list() method or investigate the linked paginated API reference.
