E2B icon

E2B

Run commands and manage E2B sandboxes and snapshots

Sandbox → Get Many

AI-generated

Summary

Retrieve a list of E2B sandboxes, limited by a maximum number of results.

Inputs

  • Limit — Max number of sandboxes to return (default 50).
  • Timeout — Timeout in seconds for the E2B API operation (default 300).

Output shape

a list of sandbox records

Returns an array of sandbox objects with metadata including sandboxId, state, metadata, and resource usage details. The output is limited by the 'Limit' parameter.

Examples

Example 1: Retrieve up to 100 sandboxes

Set 'Limit' to 100 and invoke this operation to list running sandboxes.

Links

Discussion