---
title: "Redact PII"
method: POST
path: "/v2/pii/redact"
---

# Redact PII

`POST /v2/pii/redact`

Replaces detected PII with placeholders and returns the reverse mapping needed to restore the original text.

## Request body

- RedactRequest
  - `text` string
  - `language` string
  - `threshold` number, double

## Response `200`

OK

- RedactResponse
  - `redacted_text` string
  - `mappings` object — Maps each placeholder (e.g. "<PERSON_1>") to the original value it replaced.

---

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