# Get files

```http
POST /projects/{project_reference}/files/batch
```

Return the files at the given paths. Requires project.read.

## Parameters

| Name                | In    | Required | Description                                                |
| ------------------- | ----- | -------- | ---------------------------------------------------------- |
| `project_reference` | path  | Yes      | Project slug, UUID, or domain that identifies the project. |
| `ref`               | query |          |                                                            |
| `branch`            | query |          |                                                            |
| `branch_id`         | query |          |                                                            |

## Request body

| Field   | Type  | Required | Description                  |
| ------- | ----- | -------- | ---------------------------- |
| `paths` | array | Yes      | Array of file paths to fetch |

## Responses

| Status | Description                                                  |
| ------ | ------------------------------------------------------------ |
| 200    | Files with content.                                          |
| 400    | Invalid input, or an invalid or conflicting content selector |
| 401    | Unauthorized                                                 |
| 403    | Forbidden - insufficient permissions                         |
| 404    | Not found                                                    |
| 500    | Server error                                                 |
