---
title: "List jobs for a workflow run"
method: GET
path: "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
tags: ["actions"]
---

# List jobs for a workflow run

`GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs`

## Request

- Base URL: `http://HOSTNAME/api/v3`
- URL: `http://HOSTNAME/api/v3/repos/{owner}/{repo}/actions/runs/{run_id}/jobs`
- Auth: none declared

Lists jobs for a workflow run. You can use parameters to narrow the list of results. For more information
about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.8/rest/guides/getting-started-with-the-rest-api#parameters).

Anyone with read access to the repository can use this endpoint.

OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.

## Path parameters

- `owner` string, required
- `repo` string, required
- `run_id` integer, required

## Query parameters

- `filter` 'latest' | 'all'
- `per_page` integer
- `page` integer

## Response `200`

Response

- object
  - `total_count` integer, required
  - `jobs` Job[], required
    - `id` integer, required: The id of the job.
    - `run_id` integer, required: The id of the associated workflow run.
    - `run_url` string, required
    - `run_attempt` integer: Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
    - `node_id` string, required
    - `head_sha` string, required: The SHA of the commit that is being run.
    - `url` string, required
    - `html_url` string, nullable, required
    - `status` 'queued' | 'in_progress' | 'completed' | 'waiting' | 'requested' | 'pending', required: The phase of the lifecycle that the job is currently in.
    - `conclusion` 'success' | 'failure' | 'neutral' | 'cancelled' | 'skipped' | 'timed_out' | 'action_required', nullable, required: The outcome of the job.
    - `started_at` string, date-time, required: The time that the job started, in ISO 8601 format.
    - `completed_at` string, date-time, nullable, required: The time that the job finished, in ISO 8601 format.
    - `name` string, required: The name of the job.
    - `steps` object[]: Steps in this job.
      - `status` 'queued' | 'in_progress' | 'completed', required: The phase of the lifecycle that the job is currently in.
      - `conclusion` string, nullable, required: The outcome of the job.
      - `name` string, required: The name of the job.
      - `number` integer, required
      - `started_at` string, date-time, nullable: The time that the step started, in ISO 8601 format.
      - `completed_at` string, date-time, nullable: The time that the job finished, in ISO 8601 format.
    - `check_run_url` string, required
    - `labels` string[], required: Labels for the workflow job. Specified by the "runs_on" attribute in the action's workflow file.
    - `runner_id` integer, nullable, required: The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
    - `runner_name` string, nullable, required: The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
    - `runner_group_id` integer, nullable, required: The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
    - `runner_group_name` string, nullable, required: The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)
    - `workflow_name` string, nullable, required: The name of the workflow.
    - `head_branch` string, nullable, required: The name of the current branch.

## Changes

- **2024-03-14** (3.8) `dd64eb880593`: 2 warning
  - added the new `pending` enum value to the `jobs/items/status` response property for the response status `200`
  - added the new `requested` enum value to the `jobs/items/status` response property for the response status `200`
- **2023-10-20** (3.8) `1dca68861de5`: 1 warning
  - added the new `waiting` enum value to the `jobs/items/status` response property for the response status `200`

[Operation history](https://skmtc.dev/github/apis/enterprise-server/changes/repos/:owner/:repo/actions/runs/:run_id/jobs/get.md)

---

[API](https://skmtc.dev/github/apis/enterprise-server.md) · [All operations](https://skmtc.dev/github/apis/enterprise-server/llms.txt) · [OpenAPI document](https://skmtc.dev/github/apis/enterprise-server/revisions/5438365412fe?raw)
