The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Retrieve a memory version
3url: https://platform.claude.com/docs/en/api/beta/memory_stores/memory_versions/retrieve
4---
5
16# Retrieve a memory version
27
38**GET** `/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}`
from line 33
2833
2934 - `string`
3035
31 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
36 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
3237
3338 - `"message-batches-2024-09-24"`
3439
from line 81
7681
7782 - `"user-profiles-2026-08-18"`
7883
84 - `"user-profiles-2026-09-04"`
85
7986 - `"advisor-tool-2026-03-01"`
8087
8188 - `"managed-agents-2026-04-01"`
from line 125
118125
119126 - `"mid-conversation-system-clear-at-2026-08-21"`
120127
128- `"anthropic-workspace-id": optional string`
129
121130## Returns
122131
123132- `BetaManagedAgentsMemoryVersion object`
from line 133
124133
125134 A `memory_version` object: one immutable, attributed row in a memory's append-only history. Every non-no-op mutation to a memory produces a new version. Versions belong to the store (not the individual memory) and are not deleted with the memory; 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 returns 200 with `content`, `path`, `content_size_bytes`, and `content_sha256` set to `null`; branch on `redacted_at`, not HTTP status.
126135
136 - `type: "memory_version"`
137
127138 - `id: string`
128139
129140 Unique identifier for this version (a `memver_...` value).
from line 163
152163
153164 - `"deleted"`
154165
155 - `type: "memory_version"`
156
157166 - `content: optional string or null`
158167
159168 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.
from line 179
170179
171180 - `created_by: optional BetaManagedAgentsActor`
172181
173 Identifies who performed a write or redact operation. Captured at write time on the `memory_version` row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the [Sessions API](/docs/en/api/sessions-retrieve).
182 Identifies who performed a write or redact operation. Captured at write time on the `memory_version` row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the [Sessions API](/docs/en/api/beta/sessions/retrieve).
174183
175184 - `BetaManagedAgentsSessionActor object`
176185
177186 Attribution for a write made by an agent during a session, through the mounted filesystem at `/mnt/memory/`.
178187
188 - `type: "session_actor"`
189
179190 - `session_id: string`
180191
181 ID of the session that performed the write (a `sesn_...` value). Look up the session via [Retrieve a session](/docs/en/api/sessions-retrieve) for further provenance.
192 ID of the session that performed the write (a `sesn_...` value). Look up the session via [Retrieve a session](/docs/en/api/beta/sessions/retrieve) for further provenance.
182193
183194 minLength: 1
184195
185 - `type: "session_actor"`
186
187196 - `BetaManagedAgentsAPIActor object`
188197
189198 Attribution for a write made directly via the public API (outside of any session).
190199
200 - `type: "api_actor"`
201
191202 - `api_key_id: string`
192203
193204 ID of the API key that performed the write. This identifies the key, not the secret.
from line 205
194205
195206 minLength: 1
196207
197 - `type: "api_actor"`
198
199208 - `BetaManagedAgentsUserActor object`
200209
201210 Attribution for a write made by a human user through the Anthropic Console.
from line 221
212221
213222 Attribution for a write made by a workload authenticated as a service account, for example via Workload Identity Federation.
214223
224 - `type: "service_account_actor"`
225
215226 - `service_account_id: string`
216227
217228 ID of the service account that performed the write (a `svac_...` value).
from line 229
218229
219230 minLength: 1
220231
221 - `type: "service_account_actor"`
222
223232 - `path: optional string or null`
224233
225234 The memory's path at the time of this write. `null` if and only if `redacted_at` is set.
from line 241
232241
233242 - `redacted_by: optional BetaManagedAgentsActor`
234243
235 Identifies who performed a write or redact operation. Captured at write time on the `memory_version` row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the [Sessions API](/docs/en/api/sessions-retrieve).
244 Identifies who performed a write or redact operation. Captured at write time on the `memory_version` row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the [Sessions API](/docs/en/api/beta/sessions/retrieve).
236245
237246## Example
238247