# sandboxFile

```graphql
query SandboxFile($sandboxId: ID!, $path: String!) {
  sandboxFile(sandboxId: $sandboxId, path: $path) {
    path
    content
    encoding
  }
}
```

Read sandbox file. Requires project.sandboxes.manage.

## Arguments

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

## Variables

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

## Responses

| Status | Description                           |
| ------ | ------------------------------------- |
| 200    | The SandboxFile! in data.sandboxFile. |

## 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 SandboxFile($sandboxId: ID!, $path: String!) {\n  sandboxFile(sandboxId: $sandboxId, path: $path) {\n    path\n    content\n    encoding\n  }\n}",
  "variables": {
    "sandboxId": "string",
    "path": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "sandboxFile": {
      "path": "string",
      "content": "string",
      "encoding": "string"
    }
  }
}
```
