# 402utils PII Redaction (Mask/Remove/Label)

> 402utils PII Redaction (Mask/Remove/Label) is a paid API for AI agents from 402utils.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Redacts PII (emails, phone numbers, IBANs, payment cards, URLs, IPs) from free text using pattern-based detection with three output modes: mask, remove, or label.

## Facts

- Endpoint: POST https://402utils.com/v1/redact?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402utils-pii-redaction-mask-remove-label-0be86f3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SPqoBqdEt2u5gOuPDMd_f

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 402utils-pii-redaction-mask-remove-label-0be86f3f -d '<json body>'
```

Example prompt: Before sending this support ticket to the AI, mask all the PII in it — emails, phone numbers, payment cards, IBANs, URLs, and IPs — using mask mode so it stays readable: 'Hi, my email is john.doe@example.com, card 4111111111111111, and I called from +1-800-555-0199.'

## When to prefer this

Choose this endpoint when you need fast, deterministic pattern-based PII redaction (no ML inference latency or hallucination risk) for structured PII types: emails, phone numbers (Google libphonenumber), IBANs (mod-97 validated), payment cards (Luhn-checked), URLs, and IPs. Ideal for preprocessing text before LLM calls, sanitizing logs, or compliance workflows. Not suitable for detecting names or postal addresses, which are out of scope.

## Known failure modes

- Text exceeds 256 KB UTF-8 limit — request rejected
- Invalid enum value in types[] array — validation error
- Invalid mode value — validation error
- Malformed JSON body — 400 bad request
- Payment not included or insufficient USDC — 402 Payment Required

## How this service works

Mask PII in free text before you send it to an LLM or write it to a log. Pattern-based detection (not ML): emails, phone numbers (Google libphonenumber), IBANs (mod-97), payment cards (Luhn), URLs and IPs. Choose types[] and mode: mask (j***@d***.com, readable), remove, or label ([EMAIL_1], re-identifiable by index). Names and postal addresses are out of scope. The input text is never logged or stored.

## Output

Returns the input text with specified PII types redacted according to the chosen mode: 'mask' partially obscures values (e.g. j***@d***.com), 'remove' deletes them entirely, and 'label' replaces them with indexed placeholders (e.g. [EMAIL_1]) for potential re-identification. The input text is never logged or stored by the service.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "mask",
    "remove",
    "label"
   ],
   "type": "string",
   "default": "mask",
   "description": "mask (readable partial mask), remove (delete), or label ([TYPE_n])."
  },
  "text": {
   "type": "string",
   "description": "The text to redact (max 256 KB UTF-8)."
  },
  "types": {
   "type": "array",
   "items": {
    "enum": [
     "email",
     "phone",
     "iban",
     "card",
     "url",
     "ip"
    ],
    "type": "string"
   },
   "description": "PII types to redact. Defaults to all six."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/402utils-pii-redaction-mask-remove-label-0be86f3f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402utils.com](https://www.zero.xyz/host/402utils.com/llms.txt)
