Skip to main content
GET
/
projects
/
{projectId}
/
git
/
trees
/
{repositoryTreeId}
Get a tree object
curl --request GET \
  --url {schemes}://api.upsun.com/projects/{projectId}/git/trees/{repositoryTreeId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "sha": "<string>",
  "tree": [
    {
      "path": "<string>",
      "mode": "040000",
      "type": "<string>",
      "sha": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string
required
repositoryTreeId
string
required

Response

default - application/json
id
string
required

The identifier of Tree

sha
string
required

The identifier of the tree

tree
Tree items · object[]
required

The tree items

Last modified on March 25, 2026