# sandboxes

```graphql
query Sandboxes {
  sandboxes {
    data {
      id
      accessScope
      workspaceStorage
      shortId
      endpoint
      status
      ttlMode
      ttlHours
      expiresAt
      runId
      stoppedAt
      createdAt
      projectId
      lastActivityAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
      self
      first
      next
      prev
    }
  }
}
```

List sandboxes.

## Arguments

| Name                     | Type               | Required | Description                    |
| ------------------------ | ------------------ | -------- | ------------------------------ |
| `input`                  | ListSandboxesInput |          |                                |
| `input.projectReference` | String             |          |                                |
| `input.accessScope`      | SandboxAccessScope |          | One of `project`, `private`.   |
| `input.cursor`           | String             |          |                                |
| `input.limit`            | Int                |          |                                |
| `input.sortBy`           | SandboxSortField   |          | One of `created_at`, `status`. |
| `input.sortOrder`        | SandboxSortOrder   |          | One of `asc`, `desc`.          |

## Responses

| Status | Description                               |
| ------ | ----------------------------------------- |
| 200    | The SandboxCollection! in data.sandboxes. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query Sandboxes {\n  sandboxes {\n    data {\n      id\n      accessScope\n      workspaceStorage\n      shortId\n      endpoint\n      status\n      ttlMode\n      ttlHours\n      expiresAt\n      runId\n      stoppedAt\n      createdAt\n      projectId\n      lastActivityAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n      self\n      first\n      next\n      prev\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "sandboxes": {
      "data": [
        {
          "id": "string",
          "accessScope": "project",
          "workspaceStorage": "ephemeral",
          "shortId": "string",
          "endpoint": "string",
          "status": "pending",
          "ttlMode": "default",
          "ttlHours": 0,
          "expiresAt": "2026-01-01T00:00:00Z",
          "runId": "string",
          "stoppedAt": "2026-01-01T00:00:00Z",
          "createdAt": "2026-01-01T00:00:00Z",
          "projectId": "string",
          "lastActivityAt": "2026-01-01T00:00:00Z"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string",
        "self": "string",
        "first": "string",
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
