# Get file

```http
GET /projects/{project_reference}/files/{file_path}
```

Return a file. Requires project.read.

## Parameters

| Name                | In    | Required | Description                                                                                      |
| ------------------- | ----- | -------- | ------------------------------------------------------------------------------------------------ |
| `project_reference` | path  | Yes      |                                                                                                  |
| `file_path`         | path  | Yes      |                                                                                                  |
| `ref`               | query |          |                                                                                                  |
| `branch`            | query |          |                                                                                                  |
| `branch_id`         | query |          |                                                                                                  |
| `fields`            | query |          |                                                                                                  |
| `exact_path`        | query |          | Treat the identifier as an exact path, without file-ID or extension fallback. Defaults to false. |

## Responses

| Status | Description                                                 |
| ------ | ----------------------------------------------------------- |
| 200    | File content with metadata with selectable response fields. |
| 400    | Missing file path or ID                                     |
| 401    | Unauthorized                                                |
| 403    | Forbidden - insufficient permissions                        |
| 404    | File not found                                              |
| 500    | Server error                                                |
