from line 1
1---
2title: Memories
3url: https://platform.claude.com/docs/en/api/beta/memory_stores/memories
4---
5
61# Memories
72
83## Create a memory
94
10**post** `/v1/memory_stores/{memory_store_id}/memories`
5**POST** `/v1/memory_stores/{memory_store_id}/memories`
116
127Create a memory
138
14### Path Parameters
9### Path parameters
1510
1611- `memory_store_id: string`
1712
18### Query Parameters
13### Query parameters
1914
2015- `view: optional BetaManagedAgentsMemoryView`
2116
from line 20
2520
2621 - `"full"`
2722
28### Header Parameters
23### Headers
2924
3025- `"anthropic-beta": optional array of AnthropicBeta`
3126
from line 98
10398
10499 - `"mid-conversation-tool-changes-2026-07-01"`
105100
106### Body Parameters
101### Body parameters
107102
108103- `content: string or null`
109104
from line 108
113108
114109 Hierarchical path for the new memory, e.g. `/projects/foo/notes.md`. Must start with `/`, contain at least one non-empty segment, and be at most 1,024 bytes. Must not contain empty segments, `.` or `..` segments, control or format characters, and must be NFC-normalized. Paths are case-sensitive.
115110
111 minLength: 2, maxLength: 1024
112
116113### Returns
117114
118- `BetaManagedAgentsMemory object { id, content_sha256, content_size_bytes, 7 more }`
115- `BetaManagedAgentsMemory object`
119116
120117 A `memory` object: a single text document at a hierarchical path inside a memory store. The `content` field is populated when `view=full` and `null` when `view=basic`; the `content_size_bytes` and `content_sha256` fields are always populated so sync clients can diff without fetching content. Memories are addressed by their `mem_...` ID; the path is the create key and can be changed via update.
121118
from line 128
131128
132129 Size of `content` in bytes (the UTF-8 plaintext length). Always populated, regardless of `view`.
133130
131 format: int32
132
134133 - `created_at: string`
135134
136135 A timestamp in RFC 3339 format
137136
137 format: date-time
138
138139 - `memory_store_id: string`
139140
140141 ID of the memory store this memory belongs to (a `memstore_...` value).
from line 150
149150
150151 - `type: "memory"`
151152
152 - `"memory"`
153
154153 - `updated_at: string`
155154
156155 A timestamp in RFC 3339 format
157156
157 format: date-time
158
158159 - `content: optional string or null`
159160
160161 The memory's UTF-8 text content. Populated when `view=full`; `null` when `view=basic`. Maximum 100 kB (102,400 bytes).
from line 162
161162
162163### Example
163164
164```http
165```bash
165166curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID/memories \
166167 -H 'Content-Type: application/json' \
167168 -H 'anthropic-version: 2023-06-01' \
from line 174
173174 }'
174175```
175176
176#### Response
177#### Response (200)
177178
178179```json
179180{
from line 193
192193
193194## List memories
194195
195**get** `/v1/memory_stores/{memory_store_id}/memories`
196**GET** `/v1/memory_stores/{memory_store_id}/memories`
196197
197198List memories
198199
199### Path Parameters
200### Path parameters
200201
201202- `memory_store_id: string`
202203
203### Query Parameters
204### Query parameters
204205
205206- `depth: optional number`
206207
207208 `0` (or omitted) returns all descendants below `path_prefix` (recursive). `1` returns immediate children only; deeper entries roll up as `memory_prefix` items. `depth=1` behaves like `ls`; omitting `depth` behaves like `find`.
208209
210 format: int32
211
209212- `limit: optional number`
210213
211214 Maximum number of items to return per page. Must be between 1 and 100. Defaults to 20 when omitted. Capped at 20 when `view=full`. Both `memory` and `memory_prefix` items count toward the limit.
212215
216 format: int32
217
213218- `page: optional string`
214219
215220 Opaque pagination cursor (a `page_...` value). Pass the `next_page` value from a previous response to fetch the next page; omit for the first page.
from line 231
226231
227232 - `"full"`
228233
229### Header Parameters
234### Headers
230235
231236- `"anthropic-beta": optional array of AnthropicBeta`
232237
from line 315
310315
311316 One page of results. Each item is either a `memory` object or, when `depth` was set, a `memory_prefix` rollup marker. Items are returned in a stable, server-defined order.
312317
313 - `BetaManagedAgentsMemory object { id, content_sha256, content_size_bytes, 7 more }`
318 - `BetaManagedAgentsMemory object`
314319
315320 A `memory` object: a single text document at a hierarchical path inside a memory store. The `content` field is populated when `view=full` and `null` when `view=basic`; the `content_size_bytes` and `content_sha256` fields are always populated so sync clients can diff without fetching content. Memories are addressed by their `mem_...` ID; the path is the create key and can be changed via update.
316321
from line 331
326331
327332 Size of `content` in bytes (the UTF-8 plaintext length). Always populated, regardless of `view`.
328333
334 format: int32
335
329336 - `created_at: string`
330337
331338 A timestamp in RFC 3339 format
332339
340 format: date-time
341
333342 - `memory_store_id: string`
334343
335344 ID of the memory store this memory belongs to (a `memstore_...` value).
from line 353
344353
345354 - `type: "memory"`
346355
347 - `"memory"`
348
349356 - `updated_at: string`
350357
351358 A timestamp in RFC 3339 format
352359
360 format: date-time
361
353362 - `content: optional string or null`
354363
355364 The memory's UTF-8 text content. Populated when `view=full`; `null` when `view=basic`. Maximum 100 kB (102,400 bytes).
356365
357 - `BetaManagedAgentsMemoryPrefix object { path, type }`
366 - `BetaManagedAgentsMemoryPrefix object`
358367
359368 A rolled-up directory marker returned by [List memories](/docs/en/api/beta/memory_stores/memories/list) when `depth` is set. Indicates that one or more memories exist deeper than the requested depth under this prefix. This is a list-time rollup, not a stored resource; it has no ID and no lifecycle. Each prefix counts toward the page `limit` and interleaves with `memory` items in path order.
360369
from line 373
364373
365374 - `type: "memory_prefix"`
366375
367 - `"memory_prefix"`
368
369376- `next_page: optional string or null`
370377
371378 Opaque cursor for the next page (a `page_...` value), or `null` if there are no more results. Pass as `page` on the next request.
from line 379
372379
373380### Example
374381
375```http
382```bash
376383curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID/memories \
377384 -H 'anthropic-version: 2023-06-01' \
378385 -H 'anthropic-beta: agent-memory-2026-07-22' \
from line 386
379386 -H "X-Api-Key: $ANTHROPIC_API_KEY"
380387```
381388
382#### Response
389#### Response (200)
383390
384391```json
385392{
from line 410
403410
404411## Retrieve a memory
405412
406**get** `/v1/memory_stores/{memory_store_id}/memories/{memory_id}`
413**GET** `/v1/memory_stores/{memory_store_id}/memories/{memory_id}`
407414
408415Retrieve a memory
409416
410### Path Parameters
417### Path parameters
411418
412419- `memory_store_id: string`
413420
414421- `memory_id: string`
415422
416### Query Parameters
423### Query parameters
417424
418425- `view: optional BetaManagedAgentsMemoryView`
419426
from line 430
423430
424431 - `"full"`
425432
426### Header Parameters
433### Headers
427434
428435- `"anthropic-beta": optional array of AnthropicBeta`
429436
from line 510
503510
504511### Returns
505512
506- `BetaManagedAgentsMemory object { id, content_sha256, content_size_bytes, 7 more }`
513- `BetaManagedAgentsMemory object`
507514
508515 A `memory` object: a single text document at a hierarchical path inside a memory store. The `content` field is populated when `view=full` and `null` when `view=basic`; the `content_size_bytes` and `content_sha256` fields are always populated so sync clients can diff without fetching content. Memories are addressed by their `mem_...` ID; the path is the create key and can be changed via update.
509516
from line 526
519526
520527 Size of `content` in bytes (the UTF-8 plaintext length). Always populated, regardless of `view`.
521528
529 format: int32
530
522531 - `created_at: string`
523532
524533 A timestamp in RFC 3339 format
525534
535 format: date-time
536
526537 - `memory_store_id: string`
527538
528539 ID of the memory store this memory belongs to (a `memstore_...` value).
from line 548
537548
538549 - `type: "memory"`
539550
540 - `"memory"`
541
542551 - `updated_at: string`
543552
544553 A timestamp in RFC 3339 format
545554
555 format: date-time
556
546557 - `content: optional string or null`
547558
548559 The memory's UTF-8 text content. Populated when `view=full`; `null` when `view=basic`. Maximum 100 kB (102,400 bytes).
from line 560
549560
550561### Example
551562
552```http
563```bash
553564curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID/memories/$MEMORY_ID \
554565 -H 'anthropic-version: 2023-06-01' \
555566 -H 'anthropic-beta: agent-memory-2026-07-22' \
from line 567
556567 -H "X-Api-Key: $ANTHROPIC_API_KEY"
557568```
558569
559#### Response
570#### Response (200)
560571
561572```json
562573{
from line 586
575586
576587## Update a memory
577588
578**post** `/v1/memory_stores/{memory_store_id}/memories/{memory_id}`
589**POST** `/v1/memory_stores/{memory_store_id}/memories/{memory_id}`
579590
580591Update a memory
581592
582### Path Parameters
593### Path parameters
583594
584595- `memory_store_id: string`
585596
586597- `memory_id: string`
587598
588### Query Parameters
599### Query parameters
589600
590601- `view: optional BetaManagedAgentsMemoryView`
591602
from line 606
595606
596607 - `"full"`
597608
598### Header Parameters
609### Headers
599610
600611- `"anthropic-beta": optional array of AnthropicBeta`
601612
from line 684
673684
674685 - `"mid-conversation-tool-changes-2026-07-01"`
675686
676### Body Parameters
687### Body parameters
677688
678689- `content: optional string or null`
679690
from line 694
683694
684695 New path for the memory (a rename). Must start with `/`, contain at least one non-empty segment, and be at most 1,024 bytes. Must not contain empty segments, `.` or `..` segments, control or format characters, and must be NFC-normalized. Paths are case-sensitive. The memory's `id` is preserved across renames. Omit to leave the path unchanged.
685696
697 minLength: 2, maxLength: 1024
698
686699- `precondition: optional BetaManagedAgentsPrecondition`
687700
688701 Optimistic-concurrency precondition: the update applies only if the memory's stored `content_sha256` equals the supplied value. On mismatch, the request returns `memory_precondition_failed_error` (HTTP 409); re-read the memory and retry against the fresh state. If the precondition fails but the stored state already exactly matches the requested `content` and `path`, the server returns 200 instead of 409.
from line 702
689702
690703 - `type: "content_sha256"`
691704
692 - `"content_sha256"`
693
694705 - `content_sha256: optional string`
695706
696707 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.
from line 708
697708
698709### Returns
699710
700- `BetaManagedAgentsMemory object { id, content_sha256, content_size_bytes, 7 more }`
711- `BetaManagedAgentsMemory object`
701712
702713 A `memory` object: a single text document at a hierarchical path inside a memory store. The `content` field is populated when `view=full` and `null` when `view=basic`; the `content_size_bytes` and `content_sha256` fields are always populated so sync clients can diff without fetching content. Memories are addressed by their `mem_...` ID; the path is the create key and can be changed via update.
703714
from line 724
713724
714725 Size of `content` in bytes (the UTF-8 plaintext length). Always populated, regardless of `view`.
715726
727 format: int32
728
716729 - `created_at: string`
717730
718731 A timestamp in RFC 3339 format
719732
733 format: date-time
734
720735 - `memory_store_id: string`
721736
722737 ID of the memory store this memory belongs to (a `memstore_...` value).
from line 746
731746
732747 - `type: "memory"`
733748
734 - `"memory"`
735
736749 - `updated_at: string`
737750
738751 A timestamp in RFC 3339 format
739752
753 format: date-time
754
740755 - `content: optional string or null`
741756
742757 The memory's UTF-8 text content. Populated when `view=full`; `null` when `view=basic`. Maximum 100 kB (102,400 bytes).
from line 758
743758
744759### Example
745760
746```http
761```bash
747762curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID/memories/$MEMORY_ID \
748763 -H 'Content-Type: application/json' \
749764 -H 'anthropic-version: 2023-06-01' \
from line 767
752767 -d '{}'
753768```
754769
755#### Response
770#### Response (200)
756771
757772```json
758773{
from line 786
771786
772787## Delete a memory
773788
774**delete** `/v1/memory_stores/{memory_store_id}/memories/{memory_id}`
789**DELETE** `/v1/memory_stores/{memory_store_id}/memories/{memory_id}`
775790
776791Delete a memory
777792
778### Path Parameters
793### Path parameters
779794
780795- `memory_store_id: string`
781796
782797- `memory_id: string`
783798
784### Query Parameters
799### Query parameters
785800
786801- `expected_content_sha256: optional string`
787802
788803 Query parameter for expected_content_sha256
789804
790### Header Parameters
805### Headers
791806
792807- `"anthropic-beta": optional array of AnthropicBeta`
793808
from line 882
867882
868883### Returns
869884
870- `BetaManagedAgentsDeletedMemory object { id, type }`
885- `BetaManagedAgentsDeletedMemory object`
871886
872887 Tombstone returned by [Delete a memory](/docs/en/api/beta/memory_stores/memories/delete). The memory's version history persists and remains listable via [List memory versions](/docs/en/api/beta/memory_stores/memory_versions/list) until the store itself is deleted.
873888
from line 892
877892
878893 - `type: "memory_deleted"`
879894
880 - `"memory_deleted"`
881
882895### Example
883896
884```http
897```bash
885898curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID/memories/$MEMORY_ID \
886899 -X DELETE \
887900 -H 'anthropic-version: 2023-06-01' \
from line 902
889902 -H "X-Api-Key: $ANTHROPIC_API_KEY"
890903```
891904
892#### Response
905#### Response (200)
893906
894907```json
895908{
from line 911
898911}
899912```
900913
901## Domain Types
914## Domain types
902915
903916### Beta Managed Agents Conflict Error
904917
905- `BetaManagedAgentsConflictError object { type, message }`
918- `BetaManagedAgentsConflictError object`
906919
907920 - `type: "conflict_error"`
908921
909 - `"conflict_error"`
910
911922 - `message: optional string`
912923
913924### Beta Managed Agents Content Sha256 Precondition
914925
915- `BetaManagedAgentsContentSha256Precondition object { type, content_sha256 }`
926- `BetaManagedAgentsContentSha256Precondition object`
916927
917928 Optimistic-concurrency precondition: the update applies only if the memory's stored `content_sha256` equals the supplied value. On mismatch, the request returns `memory_precondition_failed_error` (HTTP 409); re-read the memory and retry against the fresh state. If the precondition fails but the stored state already exactly matches the requested `content` and `path`, the server returns 200 instead of 409.
918929
919930 - `type: "content_sha256"`
920931
921 - `"content_sha256"`
922
923932 - `content_sha256: optional string`
924933
925934 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.
from line 935
926935
927936### Beta Managed Agents Deleted Memory
928937
929- `BetaManagedAgentsDeletedMemory object { id, type }`
938- `BetaManagedAgentsDeletedMemory object`
930939
931940 Tombstone returned by [Delete a memory](/docs/en/api/beta/memory_stores/memories/delete). The memory's version history persists and remains listable via [List memory versions](/docs/en/api/beta/memory_stores/memory_versions/list) until the store itself is deleted.
932941
from line 945
936945
937946 - `type: "memory_deleted"`
938947
939 - `"memory_deleted"`
940
941948### Beta Managed Agents Error
942949
943950- `BetaManagedAgentsError = BetaInvalidRequestError or BetaAuthenticationError or BetaBillingError or 9 more`
944951
945 - `BetaInvalidRequestError object { message, type }`
952 - `BetaInvalidRequestError object`
946953
947954 - `message: string`
948955
956 default: Invalid request
957
949958 - `type: "invalid_request_error"`
950959
951 - `"invalid_request_error"`
960 default: invalid_request_error
952961
953 - `BetaAuthenticationError object { message, type }`
962 - `BetaAuthenticationError object`
954963
955964 - `message: string`
956965
966 default: Authentication error
967
957968 - `type: "authentication_error"`
958969
959 - `"authentication_error"`
970 default: authentication_error
960971
961 - `BetaBillingError object { message, type }`
972 - `BetaBillingError object`
962973
963974 - `message: string`
964975
976 default: Billing error
977
965978 - `type: "billing_error"`
966979
967 - `"billing_error"`
980 default: billing_error
968981
969 - `BetaPermissionError object { message, type }`
982 - `BetaPermissionError object`
970983
971984 - `message: string`
972985
986 default: Permission denied
987
973988 - `type: "permission_error"`
974989
975 - `"permission_error"`
990 default: permission_error
976991
977 - `BetaNotFoundError object { message, type }`
992 - `BetaNotFoundError object`
978993
979994 - `message: string`
980995
996 default: Not found
997
981998 - `type: "not_found_error"`
982999
983 - `"not_found_error"`
1000 default: not_found_error
9841001
985 - `BetaRateLimitError object { message, type }`
1002 - `BetaRateLimitError object`
9861003
9871004 - `message: string`
9881005
1006 default: Rate limited
1007
9891008 - `type: "rate_limit_error"`
9901009
991 - `"rate_limit_error"`
1010 default: rate_limit_error
9921011
993 - `BetaGatewayTimeoutError object { message, type }`
1012 - `BetaGatewayTimeoutError object`
9941013
9951014 - `message: string`
9961015
1016 default: Request timeout
1017
9971018 - `type: "timeout_error"`
9981019
999 - `"timeout_error"`
1020 default: timeout_error
10001021
1001 - `BetaAPIError object { message, type }`
1022 - `BetaAPIError object`
10021023
10031024 - `message: string`
10041025
1026 default: Internal server error
1027
10051028 - `type: "api_error"`
10061029
1007 - `"api_error"`
1030 default: api_error
10081031
1009 - `BetaOverloadedError object { message, type }`
1032 - `BetaOverloadedError object`
10101033
10111034 - `message: string`
10121035
1036 default: Overloaded
1037
10131038 - `type: "overloaded_error"`
10141039
1015 - `"overloaded_error"`
1040 default: overloaded_error
10161041
1017 - `BetaManagedAgentsMemoryPreconditionFailedError object { type, message }`
1042 - `BetaManagedAgentsMemoryPreconditionFailedError object`
10181043
10191044 - `type: "memory_precondition_failed_error"`
10201045
1021 - `"memory_precondition_failed_error"`
1022
10231046 - `message: optional string`
10241047
1025 - `BetaManagedAgentsMemoryPathConflictError object { type, conflicting_memory_id, conflicting_path, message }`
1048 - `BetaManagedAgentsMemoryPathConflictError object`
10261049
10271050 - `type: "memory_path_conflict_error"`
10281051
1029 - `"memory_path_conflict_error"`
1030
10311052 - `conflicting_memory_id: optional string`
10321053
10331054 - `conflicting_path: optional string`
from line 1055
10341055
10351056 - `message: optional string`
10361057
1037 - `BetaManagedAgentsConflictError object { type, message }`
1058 - `BetaManagedAgentsConflictError object`
10381059
10391060 - `type: "conflict_error"`
10401061
1041 - `"conflict_error"`
1042
10431062 - `message: optional string`
10441063
10451064### Beta Managed Agents Memory
10461065
1047- `BetaManagedAgentsMemory object { id, content_sha256, content_size_bytes, 7 more }`
1066- `BetaManagedAgentsMemory object`
10481067
10491068 A `memory` object: a single text document at a hierarchical path inside a memory store. The `content` field is populated when `view=full` and `null` when `view=basic`; the `content_size_bytes` and `content_sha256` fields are always populated so sync clients can diff without fetching content. Memories are addressed by their `mem_...` ID; the path is the create key and can be changed via update.
10501069
from line 1079
10601079
10611080 Size of `content` in bytes (the UTF-8 plaintext length). Always populated, regardless of `view`.
10621081
1082 format: int32
1083
10631084 - `created_at: string`
10641085
10651086 A timestamp in RFC 3339 format
10661087
1088 format: date-time
1089
10671090 - `memory_store_id: string`
10681091
10691092 ID of the memory store this memory belongs to (a `memstore_...` value).
from line 1101
10781101
10791102 - `type: "memory"`
10801103
1081 - `"memory"`
1082
10831104 - `updated_at: string`
10841105
10851106 A timestamp in RFC 3339 format
10861107
1108 format: date-time
1109
10871110 - `content: optional string or null`
10881111
10891112 The memory's UTF-8 text content. Populated when `view=full`; `null` when `view=basic`. Maximum 100 kB (102,400 bytes).
from line 1117
10941117
10951118 One item in a [List memories](/docs/en/api/beta/memory_stores/memories/list) response: either a `memory` object or, when `depth` is set, a `memory_prefix` rollup marker.
10961119
1097 - `BetaManagedAgentsMemory object { id, content_sha256, content_size_bytes, 7 more }`
1120 - `BetaManagedAgentsMemory object`
10981121
10991122 A `memory` object: a single text document at a hierarchical path inside a memory store. The `content` field is populated when `view=full` and `null` when `view=basic`; the `content_size_bytes` and `content_sha256` fields are always populated so sync clients can diff without fetching content. Memories are addressed by their `mem_...` ID; the path is the create key and can be changed via update.
11001123
from line 1133
11101133
11111134 Size of `content` in bytes (the UTF-8 plaintext length). Always populated, regardless of `view`.
11121135
1136 format: int32
1137
11131138 - `created_at: string`
11141139
11151140 A timestamp in RFC 3339 format
11161141
1142 format: date-time
1143
11171144 - `memory_store_id: string`
11181145
11191146 ID of the memory store this memory belongs to (a `memstore_...` value).
from line 1155
11281155
11291156 - `type: "memory"`
11301157
1131 - `"memory"`
1132
11331158 - `updated_at: string`
11341159
11351160 A timestamp in RFC 3339 format
11361161
1162 format: date-time
1163
11371164 - `content: optional string or null`
11381165
11391166 The memory's UTF-8 text content. Populated when `view=full`; `null` when `view=basic`. Maximum 100 kB (102,400 bytes).
11401167
1141 - `BetaManagedAgentsMemoryPrefix object { path, type }`
1168 - `BetaManagedAgentsMemoryPrefix object`
11421169
11431170 A rolled-up directory marker returned by [List memories](/docs/en/api/beta/memory_stores/memories/list) when `depth` is set. Indicates that one or more memories exist deeper than the requested depth under this prefix. This is a list-time rollup, not a stored resource; it has no ID and no lifecycle. Each prefix counts toward the page `limit` and interleaves with `memory` items in path order.
11441171
from line 1175
11481175
11491176 - `type: "memory_prefix"`
11501177
1151 - `"memory_prefix"`
1152
11531178### Beta Managed Agents Memory Path Conflict Error
11541179
1155- `BetaManagedAgentsMemoryPathConflictError object { type, conflicting_memory_id, conflicting_path, message }`
1180- `BetaManagedAgentsMemoryPathConflictError object`
11561181
11571182 - `type: "memory_path_conflict_error"`
11581183
1159 - `"memory_path_conflict_error"`
1160
11611184 - `conflicting_memory_id: optional string`
11621185
11631186 - `conflicting_path: optional string`
from line 1189
11661189
11671190### Beta Managed Agents Memory Precondition Failed Error
11681191
1169- `BetaManagedAgentsMemoryPreconditionFailedError object { type, message }`
1192- `BetaManagedAgentsMemoryPreconditionFailedError object`
11701193
11711194 - `type: "memory_precondition_failed_error"`
11721195
1173 - `"memory_precondition_failed_error"`
1174
11751196 - `message: optional string`
11761197
11771198### Beta Managed Agents Memory Prefix
11781199
1179- `BetaManagedAgentsMemoryPrefix object { path, type }`
1200- `BetaManagedAgentsMemoryPrefix object`
11801201
11811202 A rolled-up directory marker returned by [List memories](/docs/en/api/beta/memory_stores/memories/list) when `depth` is set. Indicates that one or more memories exist deeper than the requested depth under this prefix. This is a list-time rollup, not a stored resource; it has no ID and no lifecycle. Each prefix counts toward the page `limit` and interleaves with `memory` items in path order.
11821203
from line 1207
11861207
11871208 - `type: "memory_prefix"`
11881209
1189 - `"memory_prefix"`
1190
11911210### Beta Managed Agents Memory View
11921211
11931212- `BetaManagedAgentsMemoryView = "basic" or "full"`
from line 1219
12001219
12011220### Beta Managed Agents Precondition
12021221
1203- `BetaManagedAgentsPrecondition object { type, content_sha256 }`
1222- `BetaManagedAgentsPrecondition object`
12041223
12051224 Optimistic-concurrency precondition: the update applies only if the memory's stored `content_sha256` equals the supplied value. On mismatch, the request returns `memory_precondition_failed_error` (HTTP 409); re-read the memory and retry against the fresh state. If the precondition fails but the stored state already exactly matches the requested `content` and `path`, the server returns 200 instead of 409.
12061225
12071226 - `type: "content_sha256"`
1208
1209 - `"content_sha256"`
12101227
12111228 - `content_sha256: optional string`
12121229
No line in this hunk matches that.