Actions24
- Code Interpreter Actions
- Command Actions
- File Actions
- Sandbox Actions
- Snapshot Actions
Snapshot → List
AI-generatedSummary
Lists all snapshots saved for a given Declaw sandbox, returning one n8n item per snapshot.
Inputs
- Sandbox ID (required) — ID of the sandbox whose snapshots to list (e.g. sbx-a1b2c3d4). Inserted into the request path; evaluated per input item, so it can be an expression.
Output shape
A list of items, one per snapshot, taken from the snapshots array of the API response. The fields of each item are whatever the Declaw API returns.
If the response has no
snapshotsfield, the operation returns an empty list and the node outputs no items for that input. It sends GET /sandboxes/{sandboxId}/snapshots using the declawApi credential. With Continue On Fail enabled, errors are returned as an item with anerrormessage.
Examples
Example 1: Find the available snapshots before restoring a sandbox to a specific one.
Resource: Snapshot, Operation: List, Sandbox ID: sbx-a1b2c3d4. Use a snapshot ID from the output in a following Restore or Delete node.
Example 2: Clean up old snapshots for a sandbox passed in from an earlier node.
Resource: Snapshot, Operation: List, Sandbox ID: ={{$json.sandbox_id}}. Filter the output, then loop into Snapshot > Delete.