---
title: "Get a job for a workflow run"
method: GET
path: "/repos/{owner}/{repo}/actions/jobs/{job_id}"
tags: ["actions"]
---

# Get a job for a workflow run

`GET /repos/{owner}/{repo}/actions/jobs/{job_id}`

Gets a specific job in a workflow run.

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

If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

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

## Response `200`

Response

- Job — Information of a job execution in a workflow run
  - `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.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-7.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-7/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-7/versions/5438365412fe/schema)
