---
title: "Get a note corresponding to a single commit from a repository"
method: GET
path: "/repos/{owner}/{repo}/git/notes/{sha}"
tags: ["repository"]
---

# Get a note corresponding to a single commit from a repository

`GET /repos/{owner}/{repo}/git/notes/{sha}`

## Path parameters

- `owner` string, required
- `repo` string, required
- `sha` string, required

## Query parameters

- `verification` boolean
- `files` boolean

## Response `200`

Note

- Note — Note contains information related to a git note
  - `commit` Commit
    - `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
      - `visibility` 'public' | 'limited' | 'private' — User visibility level option: public, limited, private
      - `website` string — the user's website
    - `commit` RepoCommit
      - `author` CommitUser
        - `date` string — Date is the commit date in string format
        - `email` string, email — Email is the person's email address
        - `name` string — Name is the person's name
      - `committer` CommitUser
        - `date` string — Date is the commit date in string format
        - `email` string, email — Email is the person's email address
        - `name` string — Name is the person's name
      - `message` string — Message is the commit message
      - `tree` CommitMeta
        - `created` string, date-time — Created is the time when the commit was created
        - `sha` string — SHA is the commit SHA hash
        - `url` string — URL is the API URL for the commit
      - `url` string — URL is the API URL for the commit
      - `verification` PayloadCommitVerification — PayloadCommitVerification represents the GPG verification of a commit
        - `payload` string — The signed payload content
        - `reason` string — The reason for the verification status
        - `signature` string — The GPG signature of the commit
        - `signer` PayloadUser — PayloadUser represents the author or committer of a commit
          - `email` string, email
          - `name` string — Full name of the commit author
          - `username` string — username of the user
        - `verified` boolean — Whether the commit signature is verified
    - `committer` 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
      - `visibility` 'public' | 'limited' | 'private' — User visibility level option: public, limited, private
      - `website` string — the user's website
    - `created` string, date-time — Created is the time when the commit was created
    - `files` CommitAffectedFiles[] — Files contains information about files affected by the commit
      - `filename` string — Filename is the path of the affected file
      - `status` string — Status indicates how the file was affected (added, modified, deleted)
    - `html_url` string — HTMLURL is the web URL for viewing the commit
    - `parents` CommitMeta[] — Parents contains the parent commit information
      - `created` string, date-time — Created is the time when the commit was created
      - `sha` string — SHA is the commit SHA hash
      - `url` string — URL is the API URL for the commit
    - `sha` string — SHA is the commit SHA hash
    - `stats` CommitStats — CommitStats is statistics for a RepoCommit
      - `additions` integer — Additions is the number of lines added
      - `deletions` integer — Deletions is the number of lines deleted
      - `total` integer — Total is the total number of lines changed
    - `url` string — URL is the API URL for the commit
  - `message` string — The content message of the git note

## Other responses

- `404` — APINotFound is a not found empty response
- `422` — APIValidationError is error format response related to input validation

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
