> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.islo.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.islo.dev/_mcp/server.

# List snapshots

GET https://ca.compute.islo.dev/snapshots/

List all snapshots for the current tenant.

Reference: https://docs.islo.dev/api-reference/snapshots/list-snapshots

## Request

### Query parameters

- `limit` (integer, optional)
- `offset` (integer, optional)

## Response

### 200

Successful Response

- `items` (list of SnapshotResponse, required)
- `limit` (integer, required)
- `offset` (integer, required)
- `total` (long, required)

## Errors

### 401 Unauthorized Error

Unauthorized

- `code` (enum, required)
  - Allowed values: `AUTH_REQUIRED`, `INVALID_REQUEST`, `NOT_FOUND`, `VALIDATION_ERROR`, `SANDBOX_NOT_FOUND`, `SANDBOX_ALREADY_EXISTS`, `SANDBOX_INVALID_STATE`, `SANDBOX_PROVISIONING_FAILED`, `RESOURCE_NOT_FOUND`, `FILE_NOT_FOUND`, `COMMAND_NOT_FOUND`, `EXEC_FAILED`, `FILE_OPERATION_ERROR`, `RESOURCE_UNAVAILABLE`, `ACCESS_DENIED`, `CACHE_CONFLICT`, `BILLING_NOT_ALLOWED`, `TENANT_SUSPENDED`, `RATE_LIMITED`, `TIMEOUT`, `GONE`, `BAD_GATEWAY`, `INTERNAL_ERROR`
- `message` (string, required)
- `available` (long, optional, nullable)
- `limit` (long, optional, nullable)
- `request_id` (string, optional, nullable)
- `requested` (long, optional, nullable)
- `resource` (string, optional, nullable) — Optional capacity fields populated for `InsufficientResources` errors so clients (including peer agents) can recover the typed payload across HTTP boundaries instead of collapsing it to an opaque message.

## Types

### SnapshotResponse

- `id` (string, required)
- `name` (string, required)
- `status` (string, required)
- `checksum_sha256` (string, optional, nullable)
- `created_at` (datetime, optional, nullable)
- `created_by` (string, optional, nullable)
- `created_by_entity` (string, optional, nullable)
- `sandbox_id` (string, optional, nullable)
- `size_bytes` (long, optional, nullable)

## Examples

**Response**

```json
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "status": "string",
      "checksum_sha256": "string",
      "created_at": "2024-01-15T09:30:00Z",
      "created_by": "string",
      "created_by_entity": "string",
      "sandbox_id": "string",
      "size_bytes": 1
    }
  ],
  "limit": 1,
  "offset": 1,
  "total": 1
}
```

**SDK Code**

```python
import requests

url = "https://ca.compute.islo.dev/snapshots/"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://ca.compute.islo.dev/snapshots/';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://ca.compute.islo.dev/snapshots/"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://ca.compute.islo.dev/snapshots/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://ca.compute.islo.dev/snapshots/")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://ca.compute.islo.dev/snapshots/');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://ca.compute.islo.dev/snapshots/");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://ca.compute.islo.dev/snapshots/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```