# Get file version

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

Return file version. Requires project.read.

## Parameters

| Name                | In    | Required | Description                                                        |
| ------------------- | ----- | -------- | ------------------------------------------------------------------ |
| `project_reference` | path  | Yes      |                                                                    |
| `file_path`         | path  | Yes      |                                                                    |
| `version_id`        | path  | Yes      | Version UUID or numeric index 0..99 (0 = newest committed version) |
| `ref`               | query |          |                                                                    |
| `branch`            | query |          |                                                                    |
| `branch_id`         | query |          |                                                                    |

## Responses

| Status | Description                                                                 |
| ------ | --------------------------------------------------------------------------- |
| 200    | File version content with metadata.                                         |
| 400    | Missing parameters, or an invalid, conflicting or snapshot content selector |
| 401    | Unauthorized                                                                |
| 403    | Forbidden - insufficient permissions                                        |
| 404    | Version not found                                                           |
| 500    | Server error                                                                |
