Skip to main content
POST
Redact a Memory Version

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta

Path Parameters

id
string
required

Memory Store ID.

memory_id
string
required

Memory file ID.

version_id
string
required

Memory version ID.

Response

The version with redacted_at set.

An immutable record of one change to a Memory file.

Every mutation is recorded, including out-of-order writes that never became the file's current state.

id
string
required

Memory version ID.

Example:

"mver_01h455vb4pex5vsknk084sn02q"

memory_store_id
string
required

ID of the Memory Store containing the file.

Example:

"mstr_01h455vb4pex5vsknk084sn02q"

memory_id
string
required

ID of the changed Memory file.

Example:

"mem_01h455vb4pex5vsknk084sn02q"

path
string
required

File path after this change.

Example:

"README.md"

operation
enum<string>
required

Change represented by this version.

Available options:
created,
modified,
deleted,
renamed
Example:

"modified"

source
enum<string>
required

Origin of the change (api or session).

Available options:
api,
session
Example:

"api"

created_at
string<date-time>
required

Time when this version record was created.

Example:

"2026-01-02T00:00:00Z"

content
string

Historical file body, base64-encoded. Omitted for deleted versions and after the body is redacted.

Example:

"SGVsbG8="

content_sha256
string

SHA-256 of the changed content. Absent for deletions.

Example:

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

content_size_bytes
integer<int64>

Size of the changed content in bytes. Absent for deletions.

Example:

5

source_id
string

Session that produced the change. Present only when source is session.

Example:

"sesn_01h455vb4pex5vsknk084sn02q"

redacted_at
string<date-time>

Time when the historical body was redacted. Absent while readable.

Example:

"2026-01-03T00:00:00Z"

revision
integer<int64>

Monotonic position among versions that became the file's current state. Absent for out-of-order writes that never became current.

Example:

1