Retrieve a memory version
Retrieve a memory version through the OMA API.
?beta=true.Authorizations
OMA workspace API key.
Path Parameters
Path parameter memory_store_id
Path parameter memory_version_id
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true Query parameter for view
Selects which projection of a memory or memory_version the server returns. basic returns the object with content set to null; full populates content. When omitted, the default is endpoint-specific: retrieve operations default to full; list, create, and update operations default to basic. Listing with view=full caps limit at 20.
basic, full Response
Successful response (OK)
A memory_version object: one immutable, attributed row in a memory's append-only history. Every non-no-op mutation to a memory produces a new version. Versions belong to the store (not the individual memory) and persist after the memory is deleted. Retrieving a redacted version returns 200 with content, path, content_size_bytes, and content_sha256 set to null; branch on redacted_at, not HTTP status.
memory_version Unique identifier for this version (a memver_... value).
ID of the memory store this version belongs to (a memstore_... value).
ID of the memory this version snapshots (a mem_... value). Remains valid after the memory is deleted; pass it as memory_id to List memory versions to retrieve the full lineage including the deleted row.
The kind of mutation this version records: created, modified, or deleted.
created, modified, deleted When this version was written, in RFC 3339 format.
The memory's path at the time of this write. null if and only if redacted_at is set.
The memory's UTF-8 text content as of this version. null when view=basic, when operation is deleted, or when redacted_at is set.
Size of content in bytes as of this version. null when redacted_at is set or operation is deleted. Populated regardless of view otherwise.
Lowercase hex SHA-256 digest of content as of this version (64 characters). null when redacted_at is set or operation is deleted. Populated regardless of view otherwise.
Who performed this write: a session_actor, api_actor, or user_actor. Captured at write time and preserved through redaction.
- Option 1
- Option 2
- Option 3
When this version was redacted, in RFC 3339 format, or null if it has not been redacted. When set, content, path, content_size_bytes, and content_sha256 are all null. See Redact a memory version.
Who redacted this version, or null if it has not been redacted. In practice always an api_actor or user_actor (agents do not have a redact capability).
- Option 1
- Option 2
- Option 3