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

# Download job logs for a workflow run

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

Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look
for `Location:` in the response header to find the URL for the download.

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

## Other responses

- `302` — Response

---

[API](https://skmtc.net/github/apis/api-github-com.md) · [All operations](https://skmtc.net/github/apis/api-github-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/api-github-com/revisions/a367f7028301/schema)
