Claude Platform Docs

Memory Stores

Create a memory store
beta.memory_stores.create(MemoryStoreCreateParams**kwargs) -> BetaManagedAgentsMemoryStore
POST/v1/memory_stores
List memory stores
beta.memory_stores.list(MemoryStoreListParams**kwargs) -> SyncPageCursor[BetaManagedAgentsMemoryStore]
GET/v1/memory_stores
Retrieve a memory store
beta.memory_stores.retrieve(strmemory_store_id, MemoryStoreRetrieveParams**kwargs) -> BetaManagedAgentsMemoryStore
GET/v1/memory_stores/{memory_store_id}
Update a memory store
beta.memory_stores.update(strmemory_store_id, MemoryStoreUpdateParams**kwargs) -> BetaManagedAgentsMemoryStore
POST/v1/memory_stores/{memory_store_id}
Delete a memory store
beta.memory_stores.delete(strmemory_store_id, MemoryStoreDeleteParams**kwargs) -> BetaManagedAgentsDeletedMemoryStore
DELETE/v1/memory_stores/{memory_store_id}
Archive a memory store
beta.memory_stores.archive(strmemory_store_id, MemoryStoreArchiveParams**kwargs) -> BetaManagedAgentsMemoryStore
POST/v1/memory_stores/{memory_store_id}/archive
Models
class BetaManagedAgentsDeletedMemoryStore:

Confirmation that a memory_store was deleted.

id: str

ID of the deleted memory store (a memstore_... identifier). The store and all its memories and versions are no longer retrievable.

type: Literal["memory_store_deleted"]
class BetaManagedAgentsMemoryStore:

A memory_store: a named container for agent memories, scoped to a workspace. Attach a store to a session via resources[] to mount it as a directory the agent can read and write.

id: str

Unique identifier for the memory store (a memstore_... tagged ID). Use this when attaching the store to a session, or in the {memory_store_id} path parameter of subsequent calls.

created_at: datetime

A timestamp in RFC 3339 format

formatdate-time
name: str

Human-readable name for the store. 1–255 characters. The store's mount-path slug under /mnt/memory/ is derived from this name.

type: Literal["memory_store"]
updated_at: datetime

A timestamp in RFC 3339 format

formatdate-time
archived_at: Optional[datetime]

A timestamp in RFC 3339 format

formatdate-time
description: Optional[str]

Free-text description of what the store contains, up to 1024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent. Empty string when unset.

metadata: Optional[Dict[str, str]]

Arbitrary key-value tags for your own bookkeeping (such as the end user a store belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters. Returned on retrieve/list but not filterable.

Memory StoresMemories

Create a memory
beta.memory_stores.memories.create(strmemory_store_id, MemoryCreateParams**kwargs) -> BetaManagedAgentsMemory
POST/v1/memory_stores/{memory_store_id}/memories
List memories
beta.memory_stores.memories.list(strmemory_store_id, MemoryListParams**kwargs) -> SyncPageCursor[BetaManagedAgentsMemoryListItem]
GET/v1/memory_stores/{memory_store_id}/memories
Retrieve a memory
beta.memory_stores.memories.retrieve(strmemory_id, MemoryRetrieveParams**kwargs) -> BetaManagedAgentsMemory
GET/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Update a memory
beta.memory_stores.memories.update(strmemory_id, MemoryUpdateParams**kwargs) -> BetaManagedAgentsMemory
POST/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Delete a memory
beta.memory_stores.memories.delete(strmemory_id, MemoryDeleteParams**kwargs) -> BetaManagedAgentsDeletedMemory
DELETE/v1/memory_stores/{memory_store_id}/memories/{memory_id}

Memory StoresMemory Versions

List memory versions
beta.memory_stores.memory_versions.list(strmemory_store_id, MemoryVersionListParams**kwargs) -> SyncPageCursor[BetaManagedAgentsMemoryVersion]
GET/v1/memory_stores/{memory_store_id}/memory_versions
Retrieve a memory version
beta.memory_stores.memory_versions.retrieve(strmemory_version_id, MemoryVersionRetrieveParams**kwargs) -> BetaManagedAgentsMemoryVersion
GET/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}
Redact a memory version
beta.memory_stores.memory_versions.redact(strmemory_version_id, MemoryVersionRedactParams**kwargs) -> BetaManagedAgentsMemoryVersion
POST/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact