---
title: "Get Git Repository Tree"
method: GET
path: "/api/clusters/{clusterName}/apps/{appId}/git/{gitName}/actions/get-repo-tree"
tags: ["GitRepository"]
---

# Get Git Repository Tree

`GET /api/clusters/{clusterName}/apps/{appId}/git/{gitName}/actions/get-repo-tree`

Retrieves the tree structure of a specified Git repository.

## Path parameters

- `clusterName` string, required
- `appId` string, required
- `gitName` string, required

## Headers

- `Authorization` string, required

## Response `200`

Git repository tree structure

- TreehelperFileTreeCache
  - `isCached` boolean
  - `lastUpdate` string
  - `layers` string[]
  - `reference` string
  - `tree` TreehelperFileEntry
    - `children` TreehelperFileEntry[]
    - `id` string — Unique identifier for the file entry
    - `name` string
    - `path` string
    - `type` string — "file" or "symlink" or "directory"
  - `truncated` boolean — true when file count exceeded the limit

## Other responses

- `400` — Invalid Git repository URL
- `403` — No valid ACL
- `500` — Error creating Git client" or "Error getting repository tree

## Changes

- **2026-07-17** `7465ea0ee21a` — 1 info
  - endpoint added
- **2023-03-31** `b57fc7b9446e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/signal18/apis/untitled-api/changes/api/clusters/:clusterName/apps/:appId/git/:gitName/actions/get-repo-tree/get.md)

---

[API](https://skmtc.dev/signal18/apis/untitled-api.md) · [All operations](https://skmtc.dev/signal18/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/signal18/untitled-api/revisions/7465ea0ee21a/schema)
