v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-261319281.7 MB

Retrieve a memory version

get/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}?beta=true

Path parameters

memory_store_idstring required

Path parameter memory_store_id

memory_version_idstring required

Path parameter memory_version_id

Query parameters

view'basic' | 'full'

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.

Query parameter for view

Headers

x-api-keystring
anthropic-versionstring
anthropic-betastring

Response

Successful response (OK)

type'memory_version' required
idstring required

Unique identifier for this version (a memver_... value).

memory_store_idstring required

ID of the memory store this version belongs to (a memstore_... value).

memory_idstring required

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.

pathstring nullable

The memory's path at the time of this write. null if and only if redacted_at is set.

operation'created' | 'modified' | 'deleted' required

The kind of mutation a memory_version records. Every non-no-op mutation to a memory appends exactly one version row with one of these values.

contentstring nullable

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.

content_size_bytesinteger nullable

Size of content in bytes as of this version. null when redacted_at is set or operation is deleted. Populated regardless of view otherwise.

content_sha256string nullable

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.

created_atstring date-time required

A timestamp in RFC 3339 format

redacted_atstring date-time

A timestamp in RFC 3339 format