> 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 sandboxes

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

List sandboxes for the authenticated tenant with optional filters and pagination.

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

## Request

### Query parameters

- `q` (string, optional, nullable) — Search term for sandbox name, image, creator, or public ID. Takes precedence over `search` when both are provided.
- `search` (string, optional, nullable) — Search term for sandbox name, image, creator, or public ID. Alias for `q`.
- `status` (list of string, optional)
- `name_prefix` (string, optional, nullable)
- `created_by` (string, optional, nullable)
- `limit` (integer, optional)
- `offset` (integer, optional)
- `cursor` (string, optional, nullable)

## Response

### 200

Paginated sandbox list

- `items` (list of SandboxResponse, required)
- `limit` (integer, required)
- `offset` (integer, required)
- `total` (integer, required)
- `next_cursor` (string, optional, nullable)

## 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`, `TENANT_DELETED`, `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

### SandboxResponse

- `created_at` (string, required)
- `id` (string, required)
- `image` (string, required)
- `name` (string, required)
- `status` (string, required)
- `created_by` (string, optional, nullable)
- `creation_phase` (string, optional, nullable)
- `deleted_at` (string, optional, nullable)
- `lifecycle` (LifecyclePolicy, optional, nullable)
- `setup_steps` (list of SetupStepResult, optional, nullable)
- `spec` (SandboxSpec, optional, nullable)
- `workdir` (string, optional, nullable)

### LifecyclePolicy

- `auto_resume` (enum, optional)
  - Allowed values: `never`, `on_activity`
- `delete_after` (long, optional, nullable)
- `pause_after` (long, optional, nullable)
- `pause_after_idle` (long, optional, nullable)

### SetupStepResult

- `name` (string, required)
- `status` (string, required)
- `stderr` (string, optional, nullable)
- `stdout` (string, optional, nullable)

### SandboxSpec

- `disk_gb` (integer, required)
- `memory_mb` (integer, required)
- `vcpus` (integer, required)

## Examples

**Response**

```json
{
  "items": [
    {
      "created_at": "string",
      "id": "string",
      "image": "string",
      "name": "string",
      "status": "string",
      "created_by": "string",
      "creation_phase": "string",
      "deleted_at": "string",
      "lifecycle": null,
      "setup_steps": [
        {
          "name": "string",
          "status": "string",
          "stderr": "string",
          "stdout": "string"
        }
      ],
      "spec": null,
      "workdir": "string"
    }
  ],
  "limit": 1,
  "offset": 1,
  "total": 1,
  "next_cursor": "string"
}
```

**SDK Code**

```python
import requests

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

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://ca.compute.islo.dev/sandboxes';
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/sandboxes"

	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/sandboxes")

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/sandboxes")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp
using RestSharp;

var client = new RestClient("https://ca.compute.islo.dev/sandboxes");
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/sandboxes")! 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()
```