# List pending file drafts

```http
GET /projects/{project_reference}/drafts
```

List pending file drafts. Requires project.files.read.

## Parameters

| Name                | In    | Required | Description                                                                                                                                              |
| ------------------- | ----- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | path  | Yes      | Project whose pending drafts are selected. Returns one latest update per canonically visible source file; restricted server-function drafts are omitted. |
| `branch_reference`  | query |          | Branch name or UUID. Omit for main; a missing selection is an error.                                                                                     |
| `entity_type`       | query |          | Filter by the actual source-file type.                                                                                                                   |

## Responses

| Status | Description            |
| ------ | ---------------------- |
| 200    | Latest pending updates |
| 400    | Bad request            |
| 401    | Unauthorized           |
| 403    | Forbidden              |
| 404    | Not found              |
| 500    | Server error           |
