Skip to main content
GET
列出记忆存储
每个请求都必须发送 ?beta=true

授权

X-Api-Key
string
header
默认值:sk-ant-local-default
必填

OMA 工作区 API 密钥。

请求头

anthropic-version
string
anthropic-beta
string

查询参数

beta
enum<boolean>
必填

为此接口启用 Beta API 合同,必须为 true

可用选项:
true
limit
integer<int32>

每页返回的最大存储数。必须介于 1 到 100 之间。省略时默认为 20。

page
string

不透明的分页游标(page_... 格式的值)。传入上一次响应中的 next_page 值以获取下一页;获取第一页时省略。

include_archived
boolean

true 时,结果中包含已归档的存储。默认为 false(不含已归档的存储)。

created_at[gte]
string<date-time>

仅返回 created_at 不早于该时间(含该时间点)的存储。实际传输时以 created_at[gte] 发送。 RFC 3339 格式的时间戳

created_at[lte]
string<date-time>

仅返回 created_at 不晚于该时间(含该时间点)的存储。实际传输时以 created_at[lte] 发送。 RFC 3339 格式的时间戳

响应

请求成功。

一页 memory_store 结果,按 created_at 降序排列(最新的在前)。

data
object[]

当前页的记忆存储,最新的在前。没有匹配过滤条件的存储时为空。

next_page
string | null

下一页的不透明游标(page_... 值)。在下一次请求中作为 page 传入。没有更多结果时为 null