跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt

Use this file to discover all available pages before exploring further.

GET /v1/memory_stores/{memory_store_id}/memories/{memory_id} 根据 ID 获取单条记忆条目的完整信息(包含内容)。

请求头

头部必选说明
AuthorizationBearer <PAT>

路径参数

参数类型必选说明
memory_store_idstringMemory Store ID(memstore_ 前缀)
memory_idstring记忆条目 ID(mem_ 前缀)

示例请求

curl -X GET "https://openapi.qoder.sh/api/v1/cloud/memory_stores/memstore_xxx/memories/mem_xxx" \
  -H "Authorization: Bearer $QODER_PAT"

示例响应

HTTP 200 OK
{
  "id": "mem_019e3bb965a671fca51bde1cf8d87de0",
  "type": "memory",
  "store_id": "memstore_019e3bb93b7074f9a5130d39ddcca90f",
  "path": "test/note.md",
  "content": "Hello world",
  "size": 11,
  "content_sha256": "64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c",
  "version": 1,
  "metadata": {},
  "created_at": "2026-05-18T15:34:26.494349Z",
  "updated_at": "2026-05-18T15:34:26.494349Z"
}

响应字段

字段类型说明
idstring唯一标识符
typestring固定值 "memory"
store_idstring所属 Store ID
pathstring相对路径
contentstring记忆内容(完整文本)
sizeint64内容大小(字节)
content_sha256string内容 SHA-256 哈希
versionint64当前版本号
metadataobject自定义元数据
created_atstring创建时间(ISO 8601)
updated_atstring最后更新时间(ISO 8601)

错误码

HTTPtype触发条件
401authentication_error未提供或无效的认证令牌
404not_found_error指定的 Memory Store 或记忆条目不存在

注意事项

  • 此接口返回 content 字段(区别于列表接口)
  • 可用于获取最新版本的完整内容
完整错误信封说明详见 错误参考