Skip to main content
GET
/
api
/
repos
/
{repo_name}
/
tags
List Tags
curl --request GET \
  --url https://api.{cluster}.code.storage/api/repos/{repo_name}/tags \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "next_cursor": "t_def456",
  "tags": [
    {
      "cursor": "t_abc123",
      "name": "v1.0.0",
      "sha": "a1b2c3d4e5f6"
    }
  ]
}

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

cursor
string

Pagination cursor returned by a previous list_tags response.

limit
integer
default:20

Maximum number of tags to return. Defaults to 20.

Response

Repository tags in lexical order.

Paginated list of tags for the repository.

has_more
boolean
required

Whether more tags exist.

Example:

true

tags
object[]
required

List of tag objects.

next_cursor
string

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

Example:

"t_def456"