# List file versions

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

List file versions. Requires project.read.

## Parameters

| Name                | In    | Required | Description                                                                                                                                                                                              |
| ------------------- | ----- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | path  | Yes      |                                                                                                                                                                                                          |
| `file_path`         | path  | Yes      |                                                                                                                                                                                                          |
| `ref`               | query |          |                                                                                                                                                                                                          |
| `branch`            | query |          |                                                                                                                                                                                                          |
| `branch_id`         | query |          |                                                                                                                                                                                                          |
| `exact_path`        | query |          | Treat the identifier as an exact path, including UUID-shaped filenames. Defaults to false.                                                                                                               |
| `cursor`            | query |          | Forward-only continuation through committed versions, newest first. Main history uses selection time; branch history uses commit sequence. Other sorting is unsupported; page\_info.prev is always null. |
| `limit`             | query |          | Maximum number of entries to return. Defaults to 20 and is capped at 100.                                                                                                                                |

## Responses

| Status | Description                                                                |
| ------ | -------------------------------------------------------------------------- |
| 200    | Paginated list of file versions.                                           |
| 400    | Missing file path, or an invalid, conflicting or snapshot content selector |
| 401    | Unauthorized                                                               |
| 403    | Forbidden - insufficient permissions                                       |
| 404    | File not found                                                             |
| 500    | Server error                                                               |
