# List Sandbox Snapshots

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

`GET /workspaces/:workspace/sandboxes/:sandbox_id/snapshots`

Get all snapshots for a sandbox

**Required Scopes:** `SANDBOX_READ`

## URL Parameters

```typescript
interface URLParameters {
  /** The human-readable ID of the workspace */
  workspace: string; // Example: "my-company"
  /** The ID of the sandbox */
  sandbox_id: string; // Example: "sb-1234567890abcdef"
}
```

## Response Body

```typescript
interface ResponseBody {
  /** API endpoint to GET this object */
  url?: string;
  /** Web URL to view this object in Buddy.works */
  html_url?: string;
  /** Collection of snapshots */
  snapshots?: ShortSnapshotView[];
}
```

## Type Definitions

```typescript
interface ShortSnapshotView {
  /** API endpoint to GET this object */
  url?: string;
  /** Web URL to view this object in Buddy.works */
  html_url?: string;
  /** The ID of the snapshot */
  id?: string;
  /** Snapshot name */
  name?: string;
  /** Snapshot size in GB */
  size?: number;
  /** Snapshot status */
  status?: "CREATING" | "CREATED" | "DELETING" | "FAILED";
  /** Snapshot creation date */
  create_date?: string;
  /** Whether the snapshot was taken by the sandbox backup schedule */
  automatic?: boolean;
}

```

## Request Example

```bash
curl -X GET "https://api.buddy.works/workspaces/:workspace/sandboxes/:sandbox_id/snapshots" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "Content-Type: application/json"
```

## Response Example

**Status:** `200 OK`

```json
{
  "url": "https://api.buddy.works/workspaces/my-workspace/sandboxes/sb-12345/snapshots",
  "html_url": "https://app.buddy.works/my-project/sandboxes/sb-12345/snapshots",
  "snapshots": [
    {
      "url": "https://api.buddy.works/workspaces/my-workspace/sandboxes/sb-12345/snapshots/sn-abc123def456",
      "html_url": "https://app.buddy.works/my-project/sandboxes/sb-12345/snapshots",
      "id": "sn-abc123def456",
      "name": "My API Sandbox-20250822T10:30:15",
      "size": 2,
      "status": "CREATED",
      "create_date": "2025-08-22T10:30:18.123456789Z",
      "automatic": false
    },
    {
      "url": "https://api.buddy.works/workspaces/my-workspace/sandboxes/sb-12345/snapshots/sn-xyz789uvw012",
      "html_url": "https://app.buddy.works/my-project/sandboxes/sb-12345/snapshots",
      "id": "sn-xyz789uvw012",
      "name": "Production backup-20250821T15:45:33",
      "size": 4,
      "status": "CREATED",
      "create_date": "2025-08-21T15:45:36.987654321Z",
      "automatic": true
    },
    {
      "url": "https://api.buddy.works/workspaces/my-workspace/sandboxes/sb-12345/snapshots/sn-mno345pqr678",
      "html_url": "https://app.buddy.works/my-project/sandboxes/sb-12345/snapshots",
      "id": "sn-mno345pqr678",
      "name": "Feature branch-20250820T09:15:42",
      "size": 1,
      "status": "CREATED",
      "create_date": "2025-08-20T09:15:45.456789012Z",
      "automatic": false
    }
  ]
}
```

---
Original source: https://buddy.works/docs/api/sandboxes/list-sandbox-snapshots