> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取项目

> 通过 ID 获取项目详情

```
GET /openapi/memorylake/api/v1/projects/{id}
```

通过项目 ID 获取项目详情，包括使用统计信息。

<Note>
  **所需权限：** [`project:read`](/features/team-collaboration/permission-reference#打开项目) · `instance`
</Note>

### 路径参数

<ParamField path="id" type="string" required>
  项目 ID（格式：`proj-{uuid}`）
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://app.memorylake.cn/openapi/memorylake/api/v1/projects/proj-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### 响应

<ResponseField name="data" type="object">
  <Expandable title="项目对象">
    <ResponseField name="id" type="string">项目唯一标识</ResponseField>
    <ResponseField name="name" type="string">项目名称</ResponseField>
    <ResponseField name="description" type="string">项目描述</ResponseField>
    <ResponseField name="statistics" type="object">聚合使用统计（token 数量、检索次数）</ResponseField>
    <ResponseField name="created_at" type="string">创建时间</ResponseField>
    <ResponseField name="updated_at" type="string">最后更新时间</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "data": {
      "id": "proj-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
      "name": "My Project",
      "description": "Project description",
      "statistics": {
        "total_history_document_retrieve_tokens": 12800,
        "total_history_document_tokens": 50000,
        "total_history_memory_retrieve_tokens": 4500,
        "total_history_memory_tokens": 20000,
        "total_document_tokens": 60000,
        "total_memory_tokens": 8000,
        "document_retrieve_count": 42,
        "memory_retrieve_count": 18
      },
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-20T14:45:00Z"
    }
  }
  ```
</ResponseExample>
