---
title: List all git references for a repository
framework: appstoreconnectapi
role: symbol
role_heading: Web Service Endpoint
path: appstoreconnectapi/get-v1-scmrepositories-_id_-gitreferences
---

# List all git references for a repository

List all Git references for a specific repository that Xcode Cloud can access.

## URL

GET https://api.appstoreconnect.apple.com/v1/scmRepositories/{id}/gitReferences

## Path Parameters

id: The opaque resource ID that uniquely identifies the Repositories resource.

## Query Parameters

fields[scmGitReferences]: Additional fields to include for each Git References resource returned by the response. limit: The number of Git References resources to return. fields[scmRepositories]: include:

## Response Codes

200 OK: The request completed successfully. 400 Bad Request: An error occurred with your request. 401 Unauthorized: 403 Forbidden: Request not authorized. 404 Not Found: Resource not found. 429 :

## See Also

### Getting Repository Information

- [List all git repositories](appstoreconnectapi/get-v1-scmrepositories.md)
- [Read git repository information](appstoreconnectapi/get-v1-scmrepositories-_id_.md)
- [List Git reference IDs for an SCM repository](appstoreconnectapi/get-v1-scmrepositories-_id_-relationships-gitreferences.md)
- [List all pull requests for a repository](appstoreconnectapi/get-v1-scmrepositories-_id_-pullrequests.md)
- [List pull request IDs for an SCM repository](appstoreconnectapi/get-v1-scmrepositories-_id_-relationships-pullrequests.md)
