> ## 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.

# 列出项目

> 返回分页的项目列表，支持可选过滤

```
GET /openapi/memorylake/api/v1/projects
```

返回当前认证用户创建的分页项目列表，支持按名称进行可选过滤。

<Note>
  **所需权限：** [`project:list`](/features/team-collaboration/permission-reference#浏览项目列表) · `service`
</Note>

### 查询参数

<ParamField query="page" type="integer" default="1">
  页码（从 1 开始）
</ParamField>

<ParamField query="size" type="integer" default="20">
  每页条数（最大 100）
</ParamField>

<ParamField query="name_fuzzy" type="string">
  按项目名称模糊过滤（部分匹配）
</ParamField>

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

### 响应

<ResponseField name="data" type="object">
  <Expandable title="分页项目列表">
    <ResponseField name="items" type="array">
      项目对象数组

      <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>

    <ResponseField name="total" type="integer">项目总数</ResponseField>
    <ResponseField name="page" type="integer">当前页码</ResponseField>
    <ResponseField name="size" type="integer">每页条数</ResponseField>
    <ResponseField name="total_pages" type="integer">总页数</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "data": {
      "items": [
        {
          "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"
        }
      ],
      "total": 1,
      "page": 1,
      "size": 20,
      "total_pages": 1
    }
  }
  ```
</ResponseExample>
