# Read eval source

```http
GET /projects/{project_reference}/evals/{eval_id}/source
```

Read the editable source behind one eval before changing it; returns the eval source document with its source text, edit mode and the reasons it can only be edited as source. Requires project.evals.read.

## Parameters

| Name                 | In    | Required | Description                                                     |
| -------------------- | ----- | -------- | --------------------------------------------------------------- |
| `project_reference`  | path  | Yes      | Project slug, UUID, or domain that identifies the project.      |
| `eval_id`            | path  | Yes      |                                                                 |
| `source_target_kind` | query |          | Source to use: project or preview\_branch. Defaults to project. |
| `target_branch_id`   | query |          | Preview branch to use when the target kind is preview\_branch.  |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Eval source document                                                                                        |
| 400    | A source selector other than project or preview\_branch, or a branch id with the project source.            |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
