Claude Platform Docs

Memory Versions

List Memory Versions
MemoryVersionListPage Beta.MemoryStores.MemoryVersions.List(parameters, cancellationToken = default)
GET/v1/memory_stores/{memory_store_id}/memory_versions
Retrieve a Memory Version
BetaManagedAgentsMemoryVersion Beta.MemoryStores.MemoryVersions.Retrieve(parameters, cancellationToken = default)
GET/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}
Redact a Memory Version
BetaManagedAgentsMemoryVersion Beta.MemoryStores.MemoryVersions.Redact(parameters, cancellationToken = default)
POST/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact
Models
class BetaManagedAgentsActor: union

Identifies who performed an operation. Recorded when the operation happens and not updated afterwards, so the ID may refer to a user, service account, API key, or session that has since been deleted.

class BetaManagedAgentsApiActor { Type = "api_actor"; ApiKeyID; }

A direct caller of the public API, identified by the API key that authenticated the request.

JsonElement Type = "api_actor"
required string ApiKeyID

ID of the API key (an apikey_... value). This identifies the key, not the secret.

minLength1
class BetaManagedAgentsMemoryVersion { Type = "memory_version"; ID; CreatedAt; /* 10 more */ }

One entry in a memory's history, recording a single change and who made it.

Every change to a memory adds one version. Only redaction can change a version after that. Versions belong to the memory store and stay after the memory is deleted. Each version is retained for at least the version retention period after it was written, unless the store itself is deleted.

Retrieving a redacted version succeeds, with content, path, content_size_bytes, and content_sha256 set to null. Check redacted_at to find out whether a version was redacted.

See the memory guide to learn more about memory versions.

enum BetaManagedAgentsMemoryVersionOperation

The kind of change that a memory version records.

Every change to a memory adds one version. If you update a memory and nothing changes, the memory doesn't get a new version.

Created("created")

The memory was created. The first version in any memory's lineage.

Modified("modified")

The memory's content, path, or both were changed via update. Writes the agent makes through the filesystem mount also appear as modified.

Deleted("deleted")

The memory was deleted. The content, content_size_bytes, and content_sha256 fields are null on this version. The preceding version, while it is retained, records the deleted content's size and hash.

class BetaManagedAgentsServiceAccountActor { Type = "service_account_actor"; ServiceAccountID; }

A workload authenticated as a service account, for example via Workload Identity Federation.

JsonElement Type = "service_account_actor"
required string ServiceAccountID

ID of the service account (a svac_... value).

minLength1
class BetaManagedAgentsSessionActor { Type = "session_actor"; SessionID; }

An agent acting during a session, for example through the session's mounted filesystem. It names the session itself, not the user or API key that started the session.

JsonElement Type = "session_actor"
required string SessionID

ID of the session (a sesn_... value). Look up the session via Retrieve a session for further provenance.

minLength1
class BetaManagedAgentsUserActor { Type = "user_actor"; UserID; }

A human user, for example acting through the Anthropic Console.

JsonElement Type = "user_actor"
required string UserID

ID of the user (a user_... value).

minLength1