---
title: "Get a release"
method: GET
path: "/repos/{owner}/{repo}/releases/{id}"
tags: ["repository"]
---

# Get a release

`GET /repos/{owner}/{repo}/releases/{id}`

## Request

- Base URL: `https://demo.gitea.com/api/v1`
- URL: `https://demo.gitea.com/api/v1/repos/{owner}/{repo}/releases/{id}`
- Auth: one of:
  - HTTP basic
  - API key in query parameter `token`
  - API key in query parameter `access_token`
  - API key in header `Authorization`
  - API key in query parameter `sudo`
  - API key in header `Sudo`
  - API key in header `X-GITEA-OTP`
- TypeScript: <https://skmtc.dev/gitea/apis/gitea-api/docs/repos/:owner/:repo/releases/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

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

## Response `200`

Release

- Release: Release represents a repository release
  - `assets` Attachment[]: The files attached to the release
    - `browser_download_url` string: DownloadURL is the URL to download the attachment
    - `created_at` string, date-time: Created is the time when the attachment was uploaded
    - `download_count` integer: DownloadCount is the number of times the attachment has been downloaded
    - `id` integer: ID is the unique identifier for the attachment
    - `name` string: Name is the filename of the attachment
    - `size` integer: Size is the file size in bytes
    - `uuid` string: UUID is the unique identifier for the attachment file
  - `author` User: User represents a user
    - `active` boolean: Is user active
    - `avatar_url` string: URL to the user's avatar
    - `created` string, date-time
    - `description` string: the user's description
    - `email` string, email
    - `followers_count` integer: user counts
    - `following_count` integer
    - `full_name` string: the user's full name
    - `html_url` string: URL to the user's gitea page
    - `id` integer: the user's id
    - `is_admin` boolean: Is the user an administrator
    - `language` string: User locale
    - `last_login` string, date-time
    - `location` string: the user's location
    - `login` string: login of the user, same as `username`
    - `login_name` string: identifier of the user, provided by the external authenticator (if configured)
    - `prohibit_login` boolean: Is user login prohibited
    - `restricted` boolean: Is user restricted
    - `source_id` integer: The ID of the user's Authentication Source
    - `starred_repos_count` integer
    - `type` 'User' | 'Organization' | 'Bot': the user type
    - `visibility` 'public' | 'limited' | 'private': User visibility level option: public, limited, private
    - `website` string: the user's website
  - `body` string: The release notes or description
  - `created_at` string, date-time
  - `draft` boolean: Whether the release is a draft
  - `html_url` string: The HTML URL to view the release
  - `id` integer: The unique identifier of the release
  - `name` string: The display title of the release
  - `prerelease` boolean: Whether the release is a prerelease
  - `published_at` string, date-time
  - `tag_name` string: The name of the git tag associated with the release
  - `tarball_url` string: The URL to download the tarball archive
  - `target_commitish` string: The target commitish for the release
  - `upload_url` string: The URL template for uploading release assets
  - `url` string: The API URL of the release
  - `zipball_url` string: The URL to download the zip archive

## Other responses

- `default`: APIError is error format response

## Changes

- **2026-10-28** `7ef50c4c527f`: 1 info
  - removed the non-success response with the status `404`

[Operation history](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/releases/:id/get.md)

---

[API](https://skmtc.dev/gitea/apis/gitea-api.md) - [All operations](https://skmtc.dev/gitea/apis/gitea-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitea/apis/gitea-api/revisions/7ef50c4c527f?raw)
