# List source schedules

```http
GET /projects/{project_reference}/source-schedules
```

List the schedules declared in the source files of a project, a branch or an environment to see what can be activated; returns every declared schedule as one page with the discovery diagnostics. Requires project.runs.read.

## Parameters

| Name                    | In    | Required | Description                                                                                                             |
| ----------------------- | ----- | -------- | ----------------------------------------------------------------------------------------------------------------------- |
| `project_reference`     | path  | Yes      |                                                                                                                         |
| `runtime_target_kind`   | query |          | Runtime target to read from when source\_target\_kind is omitted.                                                       |
| `target_environment_id` | query |          | Environment ID when the target kind is environment.                                                                     |
| `target_branch_id`      | query |          | Branch ID when the target kind is preview\_branch.                                                                      |
| `source_target_kind`    | query |          | Source to read: project, main\_branch, environment or preview\_branch. Defaults to runtime\_target\_kind, then project. |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Schedules declared in project source                                                                        |
| 400    | invalid\_input: invalid source selection                                                                    |
| 401    | unauthenticated                                                                                             |
| 403    | forbidden: a project member without project.runs.read                                                       |
| 404    | not\_found: project or source target not found or not visible                                               |
| 500    | internal                                                                                                    |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
