---
title: "Anonymize entity"
method: POST
path: "/beta/anonymization"
tags: ["Anonymization"]
deprecated: true
---

# Anonymize entity

`POST /beta/anonymization`

> **Deprecated.**

Anonymize the requested entity (user or conversation). For a conversation to be successfully anonymized, it should be in the status `closed`. Otherwise, it requires `forceAnonymization` parameter set to `true` in the input body. NOTE: This endpoint is deprecated. Prefer using the anonymization endpoints of specific resources instead.

## Request body

- AnonymizeEntityInput
  - `entityId` string, required
  - `entityType` union — Replaced by _type field
    - ConversationAnonymizationType
    - MessageAnonymizationType
    - UnknownAnonymizationType
    - UserAnonymizationType
  - `forceAnonymization` boolean
  - `_type` string — values: [Conversation, Message, User]

## Response `200`

The anonymization request status

- AnonymizeEntityOutput
  - `data` AnonymizationRequestStatus, required
    - `id` string, uuid, required
    - `entityType` union, required — Replaced by _type field
      - ConversationAnonymizationType
      - MessageAnonymizationType
      - UnknownAnonymizationType
      - UserAnonymizationType
    - `_type` string, required — values: [Conversation, Message, User]
    - `initiatedAt` string, date-time, required
    - `targetEntityId` string, required
    - `requestedBy` string, uuid, required
    - `processedAt` string, date-time

## Other responses

- `400` — Invalid value extracted from request context, Invalid value for: body, The entityId doesn't match the expected format for the specified type, The entity type is missing
- `500` — Internal failure during request processing

---

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