latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-2226450911.7 MB

2f0dc7da0b6b

Redact PII

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

post/v2/pii/redact

Request body

textstring
languagestring
thresholdnumber double

Response

OK

redacted_textstring
mappingsobject

Maps each placeholder (e.g. "<PERSON_1>") to the original value it replaced.