Skip to main content
GET
List Notes Refs

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

repo_name
string
required

Repository name. Names that contain / or any other character that is not safe in a URL path segment must be URL encoded so the value occupies a single path segment. For example pierre/example is sent as pierre%2Fexample. Plain names such as example can be sent as-is. The server URL-decodes the value before resolving the repository.

Query Parameters

prefix
string

Notes ref prefix to enumerate. A bare prefix like reviews is placed under refs/notes/; a fully-qualified refs/notes/* prefix is also accepted. Defaults to refs/notes/.

cursor
string

Pagination cursor returned by a previous list_notes_refs response.

limit
integer
default:20

Maximum number of notes refs to return. Defaults to 20.

Response

Notes refs in lexical order.

Paginated list of Git notes refs under the requested prefix.

has_more
boolean
required

Whether more notes refs exist.

Example:

true

prefix
string
required

Normalized notes ref prefix used for the listing.

Example:

"refs/notes/reviews/"

refs
object[]
required

List of notes refs.

next_cursor
string

Opaque cursor for the next page (absent when no more results).

Example:

"refs/notes/reviews/session-b"