---
title: "GET /v2/{+repository}:fetchGitRefs"
method: GET
path: "/v2/{+repository}:fetchGitRefs"
tags: ["projects"]
---

# GET /v2/{+repository}:fetchGitRefs

`GET /v2/{+repository}:fetchGitRefs`

Fetch the list of branches or tags for a given repository.

## Path parameters

- `repository` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string
- `refType` 'REF_TYPE_UNSPECIFIED' | 'TAG' | 'BRANCH'

## Response `200`

Successful response

---

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