---
title: "Redact all messages in a session"
method: POST
path: "/redaction/session"
---

# Redact all messages in a session

`POST /redaction/session`

Redact all messages in a session by session ID, including any attached images

## Request body

- RedactSessionDto
  - `sessionId` string, required — The session UUID whose messages will be redacted
  - `reason` string — Optional reason for redaction

## Response `200`

Default Response

- object
  - `success` boolean, required
  - `message` string, required
  - `itemId` string, required
  - `redactionType` 'message' | 'session', required
  - `affectedCount` number, required
  - `messagesRedacted` number, required

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/open/apis/opencx-api.md) · [All operations](https://skmtc.net/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open/opencx-api/versions/57b06b52302d/schema)
