---
title: "获取项目仓库树"
method: GET
path: "/api/v1/users/projects/{id}/tree"
tags: ["【用户】项目管理"]
---

# 获取项目仓库树

`GET /api/v1/users/projects/{id}/tree`

获取项目仓库树

## Path parameters

- `id` string, required

## Query parameters

- `recursive` boolean
- `ref` string
- `path` string

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainProjectTreeEntry[]
    - `last_modified_at` integer
    - `mode` integer
    - `name` string
    - `path` string
    - `sha` string
    - `size` integer
  - `message` string

## Other responses

- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
