# sandboxFiles

```graphql
query SandboxFiles($sandboxId: ID!, $path: String!) {
  sandboxFiles(sandboxId: $sandboxId, path: $path) {
    data {
      path
      type
      sizeBytes
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
      self
      first
      next
      prev
    }
  }
}
```

List sandbox files. Requires project.sandboxes.manage.

## Arguments

| Name        | Type    | Required | Description |
| ----------- | ------- | -------- | ----------- |
| `sandboxId` | ID!     | Yes      |             |
| `path`      | String! | Yes      |             |
| `cursor`    | String  |          |             |
| `limit`     | Int     |          |             |

## Variables

```json
{
  "sandboxId": "string",
  "path": "string"
}
```

## Responses

| Status | Description                                      |
| ------ | ------------------------------------------------ |
| 200    | The SandboxFileCollection! in data.sandboxFiles. |

## 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 SandboxFiles($sandboxId: ID!, $path: String!) {\n  sandboxFiles(sandboxId: $sandboxId, path: $path) {\n    data {\n      path\n      type\n      sizeBytes\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n      self\n      first\n      next\n      prev\n    }\n  }\n}",
  "variables": {
    "sandboxId": "string",
    "path": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "sandboxFiles": {
      "data": [
        {
          "path": "string",
          "type": "file",
          "sizeBytes": 0
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string",
        "self": "string",
        "first": "string",
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
