GET /openapi/memorylake/api/v1/projects
所需权限:
project:list · service查询参数
integer
default:"1"
页码(从 1 开始)
integer
default:"20"
每页条数(最大 100)
string
按项目名称模糊过滤(部分匹配)
curl -X GET 'https://app.memorylake.cn/openapi/memorylake/api/v1/projects?page=1&size=20' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
object
{
"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
}
}