Skip to content

Download the plaintext logs of an action job

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

Returns the plaintext log for the job. By default the log for the most recent attempt is returned (ActionRunJob.TaskID tracks the latest task). Pass ?attempt=N to fetch the log for a specific historical attempt; the value matches the attempt field returned by the job listing endpoints.

owner
required
string

Owner of the repo

repo
required
string

Name of the repo

job_id
required
integer format: int64

ID of the workflow job

attempt
integer format: int64

1-based attempt number matching the value of attempt in the job listing; omit to fetch the latest attempt of the job

Plaintext log content

Media type text/plain
string

Partial log content (Range request)

Media type text/plain
string

APIUnauthorizedError is a unauthorized error response

Media type text/plain
object
message
string
url
string

APIForbiddenError is a forbidden error response

Media type text/plain
object
message
string
url
string

APINotFound is a not found error response

Media type text/plain
object
errors
Array<string>
message
string
url
string