# PII Redact

> PII Redact is a paid API for AI agents from pii-redact.x402supply.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-17).

Detects and redacts personally identifiable information (PII) in text or JSON using regex and checksum-based pattern matching, with configurable mask/label/remove modes.

## Facts

- Endpoint: POST https://pii-redact.x402supply.com/tools/redact?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pii-redact-daa14f53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kGQSpRN3LHO_oCLt15KuV

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 pii-redact-daa14f53 -d '<json body>'
```

Example prompt: Can you redact all PII from this text — mask any emails, phone numbers, SSNs, and credit card numbers: 'Contact John at john.doe@example.com or 555-123-4567, SSN 123-45-6789, card 4111111111111111'?

## When to prefer this

Choose this endpoint when you need fast, deterministic PII redaction without LLM overhead — ideal for pipelines where privacy compliance is required but you want no external AI inference, low latency, and predictable behavior. Best suited for structured data (JSON) or semi-structured text with clear PII patterns. Prefer this over LLM-based redaction when you need checksum-validated matching (e.g., Luhn for credit cards, mod-97 for IBANs) and low false-positive rates for US locale data.

## Known failure modes

- Invalid or missing 'input' field returns a validation error
- Empty 'entities' array (minItems: 1 required) causes a schema validation failure
- Unsupported locale (only 'us' is supported) returns an error
- Malformed JSON input object may cause parsing failures
- Person names or dates of birth without nearby context keywords (e.g. 'Mr.', 'DOB:') may not be detected, leading to missed PII
- High false-negative rate for NER-style names not preceded by titles or context markers
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Detect and redact PII in text or JSON. Recognizers are pure pattern/checksum matching (regex + Luhn/mod-97/SSN-area validation) — no LLM calls, no external services. Person names and dates of birth are matched only via nearby context (e.g. 'Mr. Smith', 'DOB: ...'), not general NER, to keep false positives low.

## Output

Returns the input text or JSON with PII replaced, removed, or labeled according to the chosen mode. In mask mode, PII spans are replaced with tokens like [EMAIL] or [SSN]. In label mode, the original text is annotated with entity type tags. In remove mode, PII is deleted. The response reflects the same structure as the input (string or JSON object).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "object",
     "additionalProperties": {}
    },
    {
     "type": "array",
     "items": {}
    }
   ]
  },
  "options": {
   "type": "object",
   "properties": {
    "mode": {
     "enum": [
      "mask",
      "label",
      "remove"
     ],
     "type": "string"
    },
    "locale": {
     "enum": [
      "us"
     ],
     "type": "string"
    },
    "entities": {
     "type": "array",
     "items": {
      "enum": [
       "email",
       "phone",
       "ssn",
       "credit_card",
       "iban",
       "ip",
       "us_passport",
       "us_driver_license",
       "dob",
       "us_address",
       "person_name"
      ],
      "type": "string"
     },
     "minItems": 1
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counts": {
   "ssn": 1,
   "email": 1,
   "phone": 1
  },
  "findings": [
   {
    "type": "email",
    "span_end": 40,
    "confidence": 0.95,
    "span_start": 20
   },
   {
    "type": "phone",
    "span_end": 56,
    "confidence": 0.85,
    "span_start": 44
   },
   {
    "type": "ssn",
    "span_end": 73,
    "confidence": 0.9,
    "span_start": 62
   }
  ],
  "redacted": "Contact Jane Doe at [EMAIL_1] or [PHONE_1]. SSN [SSN_1]."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pii-redact-daa14f53/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pii-redact.x402supply.com](https://www.zero.xyz/host/pii-redact.x402supply.com/llms.txt)
