# releaseFile

```graphql
query ReleaseFile($projectReference: String!, $releaseReference: String!, $fileReference: String!) {
  releaseFile(projectReference: $projectReference, releaseReference: $releaseReference, fileReference: $fileReference) {
    binary {
      contentHash
      byteSize
      contentType
    }
    id
    versionId
    path
    content
    type
    size
    updatedAt
    releaseId
    releaseVersion
    links
  }
}
```

Return release file. Requires project.read.

## Arguments

| Name                     | Type    | Required | Description                                                                                                       |
| ------------------------ | ------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
| `projectReference`       | String! | Yes      | Project UUID, slug or configured domain.                                                                          |
| `releaseReference`       | String! | Yes      | Release ID, latest or a version specifier.                                                                        |
| `fileReference`          | String! | Yes      | Project-relative file path, for example pages/index.mdx, or file ID.                                              |
| `includeServerFunctions` | Boolean |          | Set to false to read server-function source only as an editor. Omit to use the rule every GraphQL file read uses. |
| `fields`                 | String  |          | Accepted as on REST, for example (id,path,size); the selection set chooses the fields GraphQL serves.             |

## Variables

```json
{
  "projectReference": "string",
  "releaseReference": "string",
  "fileReference": "string"
}
```

## Responses

| Status | Description                           |
| ------ | ------------------------------------- |
| 200    | The ReleaseFile! in data.releaseFile. |

## 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 ReleaseFile($projectReference: String!, $releaseReference: String!, $fileReference: String!) {\n  releaseFile(projectReference: $projectReference, releaseReference: $releaseReference, fileReference: $fileReference) {\n    binary {\n      contentHash\n      byteSize\n      contentType\n    }\n    id\n    versionId\n    path\n    content\n    type\n    size\n    updatedAt\n    releaseId\n    releaseVersion\n    links\n  }\n}",
  "variables": {
    "projectReference": "string",
    "releaseReference": "string",
    "fileReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "releaseFile": {
      "binary": {
        "contentHash": "string",
        "byteSize": 0,
        "contentType": "string"
      },
      "id": "string",
      "versionId": "string",
      "path": "string",
      "content": "string",
      "type": "string",
      "size": 0,
      "updatedAt": "2026-01-01T00:00:00Z",
      "releaseId": "string",
      "releaseVersion": "string",
      "links": {}
    }
  }
}
```
