分页列出当前工作空间的记忆库,按创建时间倒序。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
GET
/memory_stores查询参数
include_archivedboolean可选默认 false 只返回未归档;true 同时返回未归档与已归档
limitinteger可选单页条数,1-100,默认 20
pagestring可选分页游标。首次不传,后续传上一次响应的 next_page 翻下一页
请求示例
curl "$AGENTSTUDIO_URL/memory_stores" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
响应字段
dataarray<object>记忆库数组
idstring记忆库 ID,格式 memstore_xxx
typestring固定为 memory_store
namestring记忆库名称,1-255 字符
descriptionstring用途说明;未填写时为空字符串
metadataobject业务自定义键值对元数据
archived_atstring | null归档时间,未归档时省略或为 null
created_atstring创建时间,ISO 8601 UTC
updated_atstring最近更新时间,ISO 8601 UTC
next_pagestring | null下一页游标;响应不含该字段或为 null 时表示末页
响应示例
{
"data": [
{
"id": "memstore_xxx",
"type": "memory_store",
"name": "项目知识库",
"description": "项目约定、决策记录与排查笔记",
"metadata": {
"team": "data"
},
"created_at": "2026-09-17T08:00:00Z",
"updated_at": "2026-09-17T08:00:00Z"
}
],
"next_page": null
}
错误码
| 状态码 | 错误码 | 说明 |
|---|---|---|
| 400 | invalid_request_error | 参数、路径、limit 或分页游标非法 |
| 401 | InvalidApiKey | API Key 缺失、错误或失效 |
| 403 | permission_error | 身份或资源访问权限不足 |
该文章对您有帮助吗?