Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.

External Documentation

To learn more, visit the GitHub documentation.

Basic Parameters

ParameterDescription
OwnerThe account owner of the repository. The name is not case sensitive.
RepoThe name of the repository. The name is not case sensitive.
Run IDThe unique identifier of the workflow run.Can be obtained via the List Workflow Runs action.

Advanced Parameters

ParameterDescription
Exclude Pull RequestsIf true pull requests are omitted from the response (empty array).

Example Output

{
	"value": {
		"actor": {
			"avatar_url": "https://github.com/images/error/octocat_happy.gif",
			"events_url": "https://api.github.com/users/octocat/events{/privacy}",
			"followers_url": "https://api.github.com/users/octocat/followers",
			"following_url": "https://api.github.com/users/octocat/following{/other_user}",
			"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
			"gravatar_id": "",
			"html_url": "https://github.com/octocat",
			"id": 1,
			"login": "octocat",
			"node_id": "MDQ6VXNlcjE=",
			"organizations_url": "https://api.github.com/users/octocat/orgs",
			"received_events_url": "https://api.github.com/users/octocat/received_events",
			"repos_url": "https://api.github.com/users/octocat/repos",
			"site_admin": false,
			"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
			"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
			"type": "User",
			"url": "https://api.github.com/users/octocat"
		},
		"artifacts_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/artifacts",
		"cancel_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/cancel",
		"check_suite_id": 42,
		"check_suite_node_id": "MDEwOkNoZWNrU3VpdGU0Mg==",
		"check_suite_url": "https://api.github.com/repos/octo-org/octo-repo/check-suites/414944374",
		"conclusion": null,
		"created_at": "2020-01-22T19:33:08Z",
		"event": "push",
		"head_branch": "main",
		"head_commit": {
			"author": {
				"email": "octocat@github.com",
				"name": "Octo Cat"
			},
			"committer": {
				"email": "noreply@github.com",
				"name": "GitHub"
			},
			"id": "acb5820ced9479c074f688cc328bf03f341a511d",
			"message": "Create linter.yaml",
			"timestamp": "2020-01-22T19:33:05Z",
			"tree_id": "d23f6eedb1e1b9610bbc754ddb5197bfe7271223"
		},
		"head_repository": {
			"archive_url": "https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}",
			"assignees_url": "https://api.github.com/repos/octo-org/octo-repo/assignees{/user}",
			"blobs_url": "https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}",
			"branches_url": "https://api.github.com/repos/octo-org/octo-repo/branches{/branch}",
			"collaborators_url": "https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}",
			"comments_url": "https://api.github.com/repos/octo-org/octo-repo/comments{/number}",
			"commits_url": "https://api.github.com/repos/octo-org/octo-repo/commits{/sha}",
			"compare_url": "https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}",
			"contents_url": "https://api.github.com/repos/octo-org/octo-repo/contents/{+path}",
			"contributors_url": "https://api.github.com/repos/octo-org/octo-repo/contributors",
			"deployments_url": "https://api.github.com/repos/octo-org/octo-repo/deployments",
			"description": null,
			"downloads_url": "https://api.github.com/repos/octo-org/octo-repo/downloads",
			"events_url": "https://api.github.com/repos/octo-org/octo-repo/events",
			"fork": false,
			"forks_url": "https://api.github.com/repos/octo-org/octo-repo/forks",
			"full_name": "octo-org/octo-repo",
			"git_commits_url": "https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}",
			"git_refs_url": "https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}",
			"git_tags_url": "https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}",
			"hooks_url": "https://api.github.com/repos/octo-org/octo-repo/hooks",
			"html_url": "https://github.com/octo-org/octo-repo",
			"id": 217723378,
			"issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}",
			"issue_events_url": "https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}",
			"issues_url": "https://api.github.com/repos/octo-org/octo-repo/issues{/number}",
			"keys_url": "https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}",
			"labels_url": "https://api.github.com/repos/octo-org/octo-repo/labels{/name}",
			"languages_url": "https://api.github.com/repos/octo-org/octo-repo/languages",
			"merges_url": "https://api.github.com/repos/octo-org/octo-repo/merges",
			"milestones_url": "https://api.github.com/repos/octo-org/octo-repo/milestones{/number}",
			"name": "octo-repo",
			"node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=",
			"notifications_url": "https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}",
			"owner": {
				"avatar_url": "https://github.com/images/error/octocat_happy.gif",
				"events_url": "https://api.github.com/users/octocat/events{/privacy}",
				"followers_url": "https://api.github.com/users/octocat/followers",
				"following_url": "https://api.github.com/users/octocat/following{/other_user}",
				"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
				"gravatar_id": "",
				"html_url": "https://github.com/octocat",
				"id": 1,
				"login": "octocat",
				"node_id": "MDQ6VXNlcjE=",
				"organizations_url": "https://api.github.com/users/octocat/orgs",
				"received_events_url": "https://api.github.com/users/octocat/received_events",
				"repos_url": "https://api.github.com/users/octocat/repos",
				"site_admin": false,
				"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
				"type": "User",
				"url": "https://api.github.com/users/octocat"
			},
			"private": true,
			"pulls_url": "https://api.github.com/repos/octo-org/octo-repo/pulls{/number}",
			"releases_url": "https://api.github.com/repos/octo-org/octo-repo/releases{/id}",
			"stargazers_url": "https://api.github.com/repos/octo-org/octo-repo/stargazers",
			"statuses_url": "https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}",
			"subscribers_url": "https://api.github.com/repos/octo-org/octo-repo/subscribers",
			"subscription_url": "https://api.github.com/repos/octo-org/octo-repo/subscription",
			"tags_url": "https://api.github.com/repos/octo-org/octo-repo/tags",
			"teams_url": "https://api.github.com/repos/octo-org/octo-repo/teams",
			"trees_url": "https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}",
			"url": "https://api.github.com/repos/octo-org/octo-repo"
		},
		"head_sha": "acb5820ced9479c074f688cc328bf03f341a511d",
		"html_url": "https://github.com/octo-org/octo-repo/actions/runs/30433642",
		"id": 30433642,
		"jobs_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/jobs",
		"logs_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/logs",
		"name": "Build",
		"node_id": "MDEyOldvcmtmbG93IFJ1bjI2OTI4OQ==",
		"path": ".github/workflows/build.yml@main",
		"previous_attempt_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/attempts/1",
		"pull_requests": [],
		"referenced_workflows": [
			{
				"path": "octocat/Hello-World/.github/workflows/deploy.yml@main",
				"ref": "refs/heads/main",
				"sha": "86e8bc9ecf7d38b1ed2d2cfb8eb87ba9b35b01db"
			},
			{
				"path": "octo-org/octo-repo/.github/workflows/report.yml@v2",
				"ref": "refs/tags/v2",
				"sha": "79e9790903e1c3373b1a3e3a941d57405478a232"
			},
			{
				"path": "octo-org/octo-repo/.github/workflows/secure.yml@1595d4b6de6a9e9751fb270a41019ce507d4099e",
				"sha": "1595d4b6de6a9e9751fb270a41019ce507d4099e"
			}
		],
		"repository": {
			"archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
			"assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}",
			"blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
			"branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}",
			"collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
			"comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}",
			"commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}",
			"compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
			"contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}",
			"contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors",
			"deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments",
			"description": "This your first repo!",
			"downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads",
			"events_url": "https://api.github.com/repos/octocat/Hello-World/events",
			"fork": false,
			"forks_url": "https://api.github.com/repos/octocat/Hello-World/forks",
			"full_name": "octocat/Hello-World",
			"git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
			"git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
			"git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
			"git_url": "git:github.com/octocat/Hello-World.git",
			"hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
			"html_url": "https://github.com/octocat/Hello-World",
			"id": 1296269,
			"issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
			"issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
			"issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}",
			"keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
			"labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}",
			"languages_url": "https://api.github.com/repos/octocat/Hello-World/languages",
			"merges_url": "https://api.github.com/repos/octocat/Hello-World/merges",
			"milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}",
			"name": "Hello-World",
			"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
			"notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
			"owner": {
				"avatar_url": "https://github.com/images/error/octocat_happy.gif",
				"events_url": "https://api.github.com/users/octocat/events{/privacy}",
				"followers_url": "https://api.github.com/users/octocat/followers",
				"following_url": "https://api.github.com/users/octocat/following{/other_user}",
				"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
				"gravatar_id": "",
				"html_url": "https://github.com/octocat",
				"id": 1,
				"login": "octocat",
				"node_id": "MDQ6VXNlcjE=",
				"organizations_url": "https://api.github.com/users/octocat/orgs",
				"received_events_url": "https://api.github.com/users/octocat/received_events",
				"repos_url": "https://api.github.com/users/octocat/repos",
				"site_admin": false,
				"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
				"type": "User",
				"url": "https://api.github.com/users/octocat"
			},
			"private": false,
			"pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}",
			"releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}",
			"ssh_url": "git@github.com:octocat/Hello-World.git",
			"stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers",
			"statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
			"subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers",
			"subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription",
			"tags_url": "https://api.github.com/repos/octocat/Hello-World/tags",
			"teams_url": "https://api.github.com/repos/octocat/Hello-World/teams",
			"trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
			"url": "https://api.github.com/repos/octocat/Hello-World"
		},
		"rerun_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/rerun",
		"run_attempt": 1,
		"run_number": 562,
		"run_started_at": "2020-01-22T19:33:08Z",
		"status": "queued",
		"triggering_actor": {
			"avatar_url": "https://github.com/images/error/octocat_happy.gif",
			"events_url": "https://api.github.com/users/octocat/events{/privacy}",
			"followers_url": "https://api.github.com/users/octocat/followers",
			"following_url": "https://api.github.com/users/octocat/following{/other_user}",
			"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
			"gravatar_id": "",
			"html_url": "https://github.com/octocat",
			"id": 1,
			"login": "octocat",
			"node_id": "MDQ6VXNlcjE=",
			"organizations_url": "https://api.github.com/users/octocat/orgs",
			"received_events_url": "https://api.github.com/users/octocat/received_events",
			"repos_url": "https://api.github.com/users/octocat/repos",
			"site_admin": false,
			"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
			"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
			"type": "User",
			"url": "https://api.github.com/users/octocat"
		},
		"updated_at": "2020-01-22T19:33:08Z",
		"url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642",
		"workflow_id": 159038,
		"workflow_url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/159038"
	}
}

Workflow Library Example

Get Workflow Run with Github and Send Results Via Email

Preview this Workflow on desktop