Claude Platform Docs

메모리

메모리 생성
$client->beta->memoryStores->memories->create(string memoryStoreID, ?string content, string path, ?ManagedAgentsMemoryView view, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsMemory
POST/v1/memory_stores/{memory_store_id}/memories
메모리 목록 조회
$client->beta->memoryStores->memories->list(string memoryStoreID, ?int depth, ?int limit, ?string page, ?string pathPrefix, ?ManagedAgentsMemoryView view, ?list<AnthropicBeta> betas, ?string workspaceID): PageCursor<ManagedAgentsMemoryListItem>
GET/v1/memory_stores/{memory_store_id}/memories
메모리 조회
$client->beta->memoryStores->memories->retrieve(string memoryID, string memoryStoreID, ?ManagedAgentsMemoryView view, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsMemory
GET/v1/memory_stores/{memory_store_id}/memories/{memory_id}
메모리 업데이트
$client->beta->memoryStores->memories->update(string memoryID, string memoryStoreID, ?ManagedAgentsMemoryView view, ?string content, ?string path, ?ManagedAgentsPrecondition precondition, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsMemory
POST/v1/memory_stores/{memory_store_id}/memories/{memory_id}
메모리 삭제
$client->beta->memoryStores->memories->delete(string memoryID, string memoryStoreID, ?string expectedContentSha256, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsDeletedMemory
DELETE/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Models
class ManagedAgentsConflictError { $type; $message; }
Type type
?string message
class ManagedAgentsContentSha256Precondition { $type; $contentSha256; }
Type type
?string contentSha256

Expected content_sha256 of the stored memory (64 lowercase hexadecimal characters). Typically the content_sha256 returned by a prior read or list call. Because the server applies no content normalization, clients can also compute this locally as the SHA-256 of the UTF-8 content bytes.

class ManagedAgentsDeletedMemory { $type; $id; }
Type type
string id

ID of the deleted memory (a mem_... value).

One of the following:
class ManagedAgentsMemory { $type; $id; $contentSha256; /* 7 more */ }
Type type
string id

Unique identifier for this memory (a mem_... value). Stable across renames; use this ID, not the path, to read, update, or delete the memory.

string contentSha256

Lowercase hex SHA-256 digest of the UTF-8 content bytes (64 characters). The server applies no normalization, so clients can compute the same hash locally for staleness checks and as the value for a content_sha256 precondition on update. Always populated, regardless of view.

int contentSizeBytes

Size of content in bytes (the UTF-8 plaintext length). Always populated, regardless of view.

\Datetime createdAt

A timestamp in RFC 3339 format

string memoryStoreID

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

string memoryVersionID

ID of the memory_version representing this memory's current content (a memver_... value). This is the authoritative head pointer; memory_version objects do not carry an is_latest flag, so compare against this field instead. Enumerate the history via List memory versions.

string path

Hierarchical path of the memory within the store, e.g. /projects/foo/notes.md. Always starts with /. Paths are case-sensitive and unique within a store. Maximum 1,024 bytes.

\Datetime updatedAt

A timestamp in RFC 3339 format

?string content

The memory's UTF-8 text content. Populated when view=full; null when view=basic. Maximum 100 kB (102,400 bytes).

One of the following:
class ManagedAgentsMemoryPathConflictError { $type; $conflictingMemoryID; $conflictingPath; $message; }
Type type
?string conflictingMemoryID
?string conflictingPath
?string message
class ManagedAgentsMemoryPreconditionFailedError { $type; $message; }
Type type
?string message
class ManagedAgentsMemoryPrefix { $type; $path; }
Type type
string path

The rolled-up path prefix, including a trailing / (e.g. /projects/foo/). Pass this value as path_prefix on a subsequent list call to drill into the directory.

One of the following:
"basic"
"full"
class ManagedAgentsPrecondition { $type; $contentSha256; }
Type type
?string contentSha256

Expected content_sha256 of the stored memory (64 lowercase hexadecimal characters). Typically the content_sha256 returned by a prior read or list call. Because the server applies no content normalization, clients can also compute this locally as the SHA-256 of the UTF-8 content bytes.