Skip to content
中文

Redact Memory Version

POST/anthropic/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact○ Unsupported

Request parameters

  • memory_store_idstringrequired

    path: Memory store ID (path or query parameter).

  • memory_version_idstringrequired

    path: Path parameter: the memory version ID.

  • memory_store_idstringrequired

    query: Memory store ID (path or query parameter).

Returns

501 This endpoint is not implemented yet; calling it returns the response below:

The platform does not provide a persistent memory store that agents can read and write yet. Calling it returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry.

Errors follow the Claude Managed Agents format — see error codes

Request

curl
curl -X POST https://api.deepraxis.com/anthropic/v1/memory_stores/memory_store_123/memory_versions/memory_version_123/redact \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.memory_stores.memory_versions.redact("memory_version_123", {"memory_store_id": "memory_store_123"})
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.memoryStores.memoryVersions.redact("memory_version_123", { memory_store_id: "memory_store_123" });
console.log(result);

Response 501

{
  "type": "error",
  "error": {
    "type": "not_implemented_error",
    "message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (POST /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact); see the docs for the supported subset."
  },
  "request_id": "0058a728-fe32-410c-a072-21d613bd14f3"
}

Response

HTTP 200

Successful response

application/json

Name Type Description
id string Unique identifier for this version (a memver_... value).
created_at string A timestamp in RFC 3339 format
memory_id string 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 to retrieve the memory's retained versions, including the deleted row while the lineage is retained.
memory_store_id string ID of the memory store this version belongs to (a memstore_... value).
operation string The kind of mutation a memory_version records. Every non-no-op mutation to a memory appends exactly one version row with one of these values.
type string
content null | string 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.
content_sha256 null | string Lowercase hex SHA-256 digest of content as of this version (64 characters). null when redacted_at is set or operation is deleted. Populated regardless of view otherwise.
content_size_bytes null | number Size of content in bytes as of this version. null when redacted_at is set or operation is deleted. Populated regardless of view otherwise.
created_by object 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.
created_by.session_id string ID of the session that performed the write (a sesn_... value). Look up the session via Retrieve a session for further provenance.
created_by.type string
created_by.api_key_id string ID of the API key that performed the write. This identifies the key, not the secret.
created_by.user_id string ID of the user who performed the write (a user_... value).
created_by.service_account_id string ID of the service account that performed the write (a svac_... value).
path null | string The memory's path at the time of this write. null if and only if redacted_at is set.
redacted_at null | string A timestamp in RFC 3339 format
redacted_by object 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.
redacted_by.session_id string ID of the session that performed the write (a sesn_... value). Look up the session via Retrieve a session for further provenance.
redacted_by.type string
redacted_by.api_key_id string ID of the API key that performed the write. This identifies the key, not the secret.
redacted_by.user_id string ID of the user who performed the write (a user_... value).
redacted_by.service_account_id string ID of the service account that performed the write (a svac_... value).