Reads a specific historical version. For reviewing old content; does not roll back the current memory.
Prerequisites
Endpoint and authentication have been configured. For details, see API overview and authentication.
Endpoint
GET /memory_stores/{memory_store_id}/memory_versions/{memory_version_id}
Path parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
memory_store_id | Yes | string | Memory store ID |
memory_version_id | Yes | string | Version ID |
Request example
Response
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Version ID, in the format memver_xxx |
type | string | Fixed as memory_version |
memory_store_id | string | ID of the memory store it belongs to |
memory_id | string | ID of the corresponding memory |
operation | created / modified / deleted | The operation type that produced this version |
path | string | The path in this version snapshot |
content | string | The content of this version; this field is absent when the content has been redacted |
content_sha256 | string | The SHA256 hash of this version's content |
content_size_bytes | integer | The UTF-8 byte size of this version's content |
redacted_at | string | null | The time when the content was redacted; omitted or null if not redacted |
created_at | string | The time this version was produced, in ISO 8601 UTC |
Error codes
| HTTP status code | Error code | Description |
|---|---|---|
| 401 | InvalidApiKey | API key missing, incorrect, or expired |
| 403 | permission_error | Insufficient identity or resource access permissions |
| 404 | not_found_error | The resource does not exist or does not belong to the current workspace |