POST
/
redaction
/
session
Redact all messages in a session
curl --request POST \
  --url https://api.open.cx/redaction/session \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sessionId": "123e4567-e89b-12d3-a456-426614174000",
  "reason": "Customer requested data removal"
}'
{
  "success": true,
  "message": "Message successfully redacted",
  "itemId": "123e4567-e89b-12d3-a456-426614174000",
  "redactionType": "message",
  "affectedCount": 1,
  "messagesRedacted": 5
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

Session messages have been redacted successfully.

The response is of type object.