# Get workflow

```http
GET /projects/{project_reference}/workflows/{workflow_id}
```

Read one workflow definition by its ID to inspect its target, version, input and output schemas and whether it can be scheduled; returns the workflow. Requires project.runs.read.

## Parameters

| Name                    | In    | Required | Description                                                |
| ----------------------- | ----- | -------- | ---------------------------------------------------------- |
| `project_reference`     | path  | Yes      | Project slug, UUID, or domain that identifies the project. |
| `workflow_id`           | path  | Yes      | Workflow ID from list\_workflows, for example publish-site |
| `runtime_target_kind`   | query |          |                                                            |
| `target_environment_id` | query |          |                                                            |
| `target_branch_id`      | query |          |                                                            |
| `source_target_kind`    | query |          |                                                            |

## Responses

| Status | Description                 |
| ------ | --------------------------- |
| 200    | Discovered project workflow |
| 401    | Unauthorized                |
| 403    | Forbidden                   |
| 404    | Not found                   |
