Sample - GitHub REST API
GET/repos/{owner}/{repo}/releases/{release_id}

Get a release

Gets a public release with the specified release ID.

[!NOTE] This returns an upload_url key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see "Getting started with the REST API."

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
release_idintegerrequired
The unique identifier of the release.

2 status codes
200**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a hypermedia resource. For more information, see "[Getting started with the REST API](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."
urlstringrequired
html_urlstringrequired
assets_urlstringrequired
upload_urlstringrequired
tarball_urlstringrequired
zipball_urlstringrequired
idintegerrequired
node_idstringrequired
tag_namestringrequired
The name of the tag.
target_commitishstringrequired
Specifies the commitish value that determines where the Git tag is created from.
namestringrequired
bodystringoptional
draftbooleanrequired
true to create a draft (unpublished) release, false to create a published one.
prereleasebooleanrequired
Whether to identify the release as a prerelease or a full release.
immutablebooleanoptional
Whether or not the release is immutable.
created_atstringrequired
published_atstringrequired
updated_atstringoptional
authorobjectrequired
A GitHub user.
assetsarray<ReleaseAsset>required
body_htmlstringoptional
body_textstringoptional
mentions_countintegeroptional
discussion_urlstringoptional
The URL of the release discussion.
reactionsobjectoptional
401Unauthorized

Error handling

A 401 is returned: Unauthorized.