utilpeek: redact PII from text
redact_piiutilpeek: Redact PII from text: emails, phone numbers, card numbers, IBANs, SSNs, IPs and crypto addresses. For API keys and tokens use check_text_for_secrets. Returns the text with emails, phone numbers, payment cards (Luhn), IBANs (mod-97), US SSNs, IPv4 / IPv6, EVM / BTC addresses and secret URL query values replaced by a tag ([EMAIL]), same-length stars or a short hash, plus each entity's type, input offsets and replacement, and counts by type. RE2 patterns, every hit re-checked; prices, dates and order numbers are left alone. Person names and street addresses are not detected (see not_detected). National phone numbers: North American or trunk-0 formats only, elsewhere the + code is needed. Typically under 1 s. Price: USD 0.002. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/pii-redaction-api-prices.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | tag (default: [EMAIL], [PHONE], [CARD] ...), stars (the same number of *, so the length is kept) or hash ([EMAIL:8 hex of SHA-256 of the normalised value]: equal values get equal tags). | tag |
| text | Yes | The text (at most 200,000 characters). | |
| types | No | Limit detection to these types: email, phone, card, iban, ssn, ipv4, ipv6, crypto_address, url_secret (default: all). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | ||
| text | No | ||
| count | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| notes | No | ||
| types | No | ||
| source | No | ||
| by_type | No | ||
| entities | No | ||
| not_detected | No |