Redact a memory version changedapi/beta/memory_stores/memory_versions/redact
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+30added
Lines−31removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits21to this page, all time
# Redact a memory version ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Redact a memory version ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: Redact a memory version
3url: https://platform.claude.com/docs/en/api/beta/memory_stores/memory_versions/redact
4---
1# Redact a memory version
52
6## Redact a memory version
3**POST** `/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact`
74
8**post** `/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact`
9
105Redact a memory version
116
12### Path Parameters
7## Path parameters
138
149- `memory_store_id: string`
1510
1611- `memory_version_id: string`
1712
18### Header Parameters
13## Headers
1914
2015- `"anthropic-beta": optional array of AnthropicBeta`
2116
from line 88
9388
9489 - `"mid-conversation-tool-changes-2026-07-01"`
9590
96### Returns
91## Returns
9792
98- `BetaManagedAgentsMemoryVersion object { id, created_at, memory_id, 10 more }`
93- `BetaManagedAgentsMemoryVersion object`
9994
10095 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 persist after the memory 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.
10196
from line 102
107102
108103 A timestamp in RFC 3339 format
109104
105 format: date-time
106
110107 - `memory_id: string`
111108
112109 ID of the memory this version snapshots (a `mem_...` value). Remains valid after the memory is deleted; pass it as `memory_id` to [List memory versions](/docs/en/api/beta/memory_stores/memory_versions/list) to retrieve the full lineage including the `deleted` row.
from line 124
127124
128125 - `type: "memory_version"`
129126
130 - `"memory_version"`
131
132127 - `content: optional string or null`
133128
134129 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 136
141136
142137 Size of `content` in bytes as of this version. `null` when `redacted_at` is set or `operation` is `deleted`. Populated regardless of `view` otherwise.
143138
139 format: int32
140
144141 - `created_by: optional BetaManagedAgentsActor`
145142
146143 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).
147144
148 - `BetaManagedAgentsSessionActor object { session_id, type }`
145 - `BetaManagedAgentsSessionActor object`
149146
150147 Attribution for a write made by an agent during a session, through the mounted filesystem at `/mnt/memory/`.
151148
from line 150
153150
154151 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.
155152
153 minLength: 1
154
156155 - `type: "session_actor"`
157156
158 - `"session_actor"`
157 - `BetaManagedAgentsAPIActor object`
159158
160 - `BetaManagedAgentsAPIActor object { api_key_id, type }`
161
162159 Attribution for a write made directly via the public API (outside of any session).
163160
164161 - `api_key_id: string`
from line 162
165162
166163 ID of the API key that performed the write. This identifies the key, not the secret.
167164
165 minLength: 1
166
168167 - `type: "api_actor"`
169168
170 - `"api_actor"`
169 - `BetaManagedAgentsUserActor object`
171170
172 - `BetaManagedAgentsUserActor object { type, user_id }`
173
174171 Attribution for a write made by a human user through the Anthropic Console.
175172
176173 - `type: "user_actor"`
177174
178 - `"user_actor"`
179
180175 - `user_id: string`
181176
182177 ID of the user who performed the write (a `user_...` value).
183178
184 - `BetaManagedAgentsServiceAccountActor object { service_account_id, type }`
179 minLength: 1
185180
181 - `BetaManagedAgentsServiceAccountActor object`
182
186183 Attribution for a write made by a workload authenticated as a service account, for example via Workload Identity Federation.
187184
188185 - `service_account_id: string`
from line 186
189186
190187 ID of the service account that performed the write (a `svac_...` value).
191188
189 minLength: 1
190
192191 - `type: "service_account_actor"`
193192
194 - `"service_account_actor"`
195
196193 - `path: optional string or null`
197194
198195 The memory's path at the time of this write. `null` if and only if `redacted_at` is set.
from line 198
201198
202199 A timestamp in RFC 3339 format
203200
201 format: date-time
202
204203 - `redacted_by: optional BetaManagedAgentsActor`
205204
206205 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).
207206
208### Example
207## Example
209208
210```http
209```bash
211210curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID/memory_versions/$MEMORY_VERSION_ID/redact \
212211 -X POST \
213212 -H 'anthropic-version: 2023-06-01' \
from line 214
215214 -H "X-Api-Key: $ANTHROPIC_API_KEY"
216215```
217216
218#### Response
217### Response (200)
219218
220219```json
221220{
No line in this hunk matches that.