---
title: "Redact PII in text"
method: POST
path: "/pii/redact"
tags: ["PII"]
---

# Redact PII in text

`POST /pii/redact`

## Request

- Base URL: `https://abundanceapis.com`
- URL: `https://abundanceapis.com/pii/redact`
- Auth: none declared

Redacts detected PII according to the selected mode.

## Request body

- object
  - `text` string, required
  - `mode` 'mask' | 'label' | 'remove'
  - `maskChar` string
  - `types` string[]

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/abundanceapis/apis/web-toolbox.md) · [All operations](https://skmtc.dev/abundanceapis/apis/web-toolbox/llms.txt) · [OpenAPI document](https://skmtc.dev/abundanceapis/apis/web-toolbox/revisions/ada2893fef43?raw)
