---
title: "获取项目文件内容"
method: GET
path: "/api/v1/users/projects/{id}/tree/blob"
tags: ["【用户】项目管理"]
---

# 获取项目文件内容

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

获取项目文件内容

## Path parameters

- `id` string, required

## Query parameters

- `path` string, required
- `ref` string

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainProjectBlob
    - `content` integer[]
    - `is_binary` boolean
    - `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)
