Skip to main content
GET
/
projects
/
{projectId}
/
git
/
refs
Get list of repository refs
curl --request GET \
  --url {schemes}://api.upsun.com/projects/{projectId}/git/refs \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "ref": "<string>",
    "object": {
      "type": "<string>",
      "sha": "<string>"
    },
    "sha": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Path Parameters

projectId
string
required

Response

default - application/json
id
string
required

The identifier of Ref

ref
string
required

The name of the reference

object
Object · object
required

The object the reference points to

sha
string
required

The commit sha of the ref