Reads a single memory with its body. An archived but undeleted store can still be read; a deleted memory returns 404.
Prerequisites
Endpoint and authentication have been configured. For details, see API overview and authentication.
Endpoint
GET /memory_stores/{memory_store_id}/memories/{memory_id}
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
memory_store_id | Yes | string | Memory store ID |
memory_id | Yes | string | Memory ID |
Request example
Response
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Memory ID, in the format mem_xxx |
type | string | Fixed value: memory |
memory_store_id | string | ID of the memory store the memory belongs to |
path | string | Path within the memory store, starting with / |
content | string | Body content, UTF-8 text; returned when view=full or when reading a single memory |
content_sha256 | string | SHA256 hash of the body content, usable as an optimistic lock for conditional updates |
content_size_bytes | integer | Size of the body content in UTF-8 bytes |
memory_version_id | string | Current version ID, in the format memver_xxx |
created_at | string | Creation time, ISO 8601 UTC |
updated_at | string | Last update time, ISO 8601 UTC |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 401 | InvalidApiKey | API key missing, invalid, or expired |
| 403 | permission_error | Insufficient identity or resource access permissions |
| 404 | not_found_error | Resource does not exist or does not belong to the current workspace |