E2B icon

E2B

Run commands and manage E2B sandboxes and snapshots

Snapshot → Get Many

AI-generated

Summary

Retrieve a list of E2B snapshots, optionally filtered by a source sandbox ID.

Inputs

  • sandboxId — Optional source sandbox ID to filter snapshots by.
  • limit — Maximum number of snapshot records to return (default: 50).
  • timeoutSeconds — Timeout in seconds for the operation (default: 300).

Output shape

a list of items

Each returned item represents a single snapshot containing snapshotId and names fields.

Examples

Example 1: List all available E2B snapshots

Leave Sandbox ID empty and set Limit to 50

Example 2: List snapshots for a specific sandbox

Set Sandbox ID to 'sbx_12345' and Limit to 10

Links

Discussion