Redact a Memory Version changedapi/beta/memory_stores/memory_versions/redact
Nearest release: v2.1.306, published 2 hours 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+23added
Lines−7removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits20to this page, all time
# Redact a Memory Version # Redact a memory version
The whole hunk
from line 1, old and new numbered
/
from line 1
11---
2title: Redact a memory version
2title: Redact a Memory Version
33url: https://platform.claude.com/docs/en/api/beta/memory_stores/memory_versions/redact
44---
55
6# Redact a memory version
6# Redact a Memory Version
77
88**POST** `/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact`
99
10Redact a memory version
10Redact a Memory Version
1111
1212## Path parameters
1313
from line 145
145145
146146- `BetaManagedAgentsMemoryVersion object`
147147
148 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.
148 One entry in a memory's history, recording a single change and who made it.
149149
150 Every change to a memory adds one version. Only redaction can change a version after that. Versions belong to the memory store and stay after the memory is deleted. Each version is retained for at least the version retention period after it was written, unless the store itself is deleted.
151
152 Retrieving a redacted version succeeds, with `content`, `path`, `content_size_bytes`, and `content_sha256` set to `null`. Check `redacted_at` to find out whether a version was redacted.
153
154 See the [memory guide](https://platform.claude.com/docs/en/managed-agents/memory?sdk_languages=http#audit-memory-changes) to learn more about memory versions.
155
150156 - `type: "memory_version"`
151157
152158 - `id: string`
from line 167
161167
162168 - `memory_id: string`
163169
164 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](https://platform.claude.com/docs/en/api/beta/memory_stores/memory_versions/list?sdk_languages=http) to retrieve the memory's retained versions, including the `deleted` row while the lineage is retained.
170 The ID of the memory that this version belongs to (`mem_...`).
165171
172 The ID stays valid after the memory is deleted. Pass it as `memory_id` to [List Memory Versions](https://platform.claude.com/docs/en/api/beta/memory_stores/memory_versions/list?sdk_languages=http) to get the memory's retained versions, including its `deleted` version while the lineage is retained.
173
166174 - `memory_store_id: string`
167175
168176 ID of the memory store this version belongs to (a `memstore_...` value).
from line 207
199207
200208 - `created_by: optional BetaManagedAgentsActor`
201209
202 Who performed this write: one of `session_actor`, `api_actor`, `user_actor`, or `service_account_actor`; `null` when no writer is recorded. Captured at write time and preserved through redaction. A `session_actor` is an agent writing through the store's mounted filesystem at `/mnt/memory/`. The API key that created that session is not recorded on agent writes, so attribution names who made the write, not who is ultimately responsible; look up session provenance via the [Sessions API](https://platform.claude.com/docs/en/api/beta/sessions/retrieve?sdk_languages=http).
210 Who made this change to the memory, or `null` if the author wasn't recorded.
203211
212 Redacting the version doesn't change this field. A `session_actor` here is an agent that wrote through the store's mounted filesystem at `/mnt/memory/`. The version doesn't record the API key that created that session. So the author in `created_by` is who made the change, not who is ultimately responsible for it.
213
214 You can [retrieve the session](https://platform.claude.com/docs/en/api/beta/sessions/retrieve?sdk_languages=http) to learn more about where the change came from.
215
204216 - `BetaManagedAgentsSessionActor object`
205217
206218 An agent acting during a session, for example through the session's mounted filesystem. It names the session itself, not the user or API key that started the session.
from line 267
255267
256268 - `redacted_at: optional string or null`
257269
258 When this version was redacted, in RFC 3339 format, or `null` if it has not been redacted. When set, `content`, `path`, `content_size_bytes`, and `content_sha256` are all `null`. See [Redact a memory version](https://platform.claude.com/docs/en/api/beta/memory_stores/memory_versions/redact?sdk_languages=http).
270 When the version was redacted, in RFC 3339, or `null` if it hasn't been.
271
272 When set, `content`, `path`, `content_size_bytes`, and `content_sha256` are `null`.
273
274 See the [memory guide](https://platform.claude.com/docs/en/managed-agents/memory?sdk_languages=http#redact-a-version) to learn more about redaction.
259275
260276 format: date-time
261277
No line in this hunk matches that.