# List a workflow's runs

> A repository's workflow runs, newest first: of one workflow (its id or file name), a branch, an event, a pull request's number, or a commit.

<div class="g1t-endpoint"><span class="g1t-method" data-method="get">GET</span><code>/repos/{owner}/{name}/actions/workflows/{workflow}/runs</code></div>

- **Authentication:** Required. Send an [access token](/reference/api/#authentication) as `Authorization: Bearer`.
- **MCP tool:** [`workflow`](/reference/mcp/#workflow) with `action` `list_runs`, and the same inputs
- **Scope:** An access token needs [`workflows:read`](/guides/authentication/#scopes).
- **Also at:** [`GET /repos/{owner}/{name}/actions/runs`](/reference/api/actions/list-workflow-runs/)

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `owner` | string | Yes | The workspace that owns the repository. |
| `name` | string | Yes | The repository's name. |
| `workflow` | string | Yes | A workflow's id or file name, such as ci.yml. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `branch` | string | No |  |
| `event` | string | No | push, pull_request, schedule, workflow_dispatch… |
| `per_page` | integer | No | At most 100; 50 if not given. |

## Example request

```sh
curl "https://api.g1t.sh/repos/flagon-io/hello/actions/workflows/ci.yml/runs?branch=main&per_page=20" \
  -H "Authorization: Bearer $G1T_TOKEN"
```

## Example response

A successful request answers `200` with:

```json
[
  {
    "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
    "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
    "path": ".g1t/workflows/ci.yml",
    "name": "CI",
    "title": "Greeting should name the caller",
    "number": 12,
    "attempt": 1,
    "event": "push",
    "ref": "refs/heads/main",
    "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
    "pull": null,
    "status": "completed",
    "conclusion": "success",
    "error": null,
    "actor": "syntaqx",
    "created_at": "2026-10-04T15:42:07.318Z",
    "started_at": "2026-10-04T15:42:09.020Z",
    "finished_at": "2026-10-04T15:44:31.877Z"
  }
]
```

## Errors

A failed request answers with one of these statuses and a body like `{"error": {"code": "not_found", "message": "Repository not found."}}`. See [errors](/reference/api/#errors).

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthenticated` | A token is required, or the one sent is not valid. |
| 403 | `forbidden` | The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | `not_found` | It does not exist, or you cannot see it. |
| 422 | `invalid` | The input is not valid. `message` says which field and why. |
