# PII Redactor API

> PII Redactor API is a paid API for AI agents from pii-redactor.pdfextractapi.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Detects and redacts personally identifiable information (PII) and sensitive data from text input.

## Facts

- Endpoint: POST https://pii-redactor.pdfextractapi.workers.dev/redact
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pii-redactor-api-b9b87090
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VdXmVW6z-Yh1541eVp3qQ

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-redactor-api-b9b87090 -d '<json body>'
```

Example prompt: Can you redact all PII from this text before I store it: 'John Smith called from 555-123-4567 and his email is john.smith@example.com, SSN 123-45-6789'?

## When to prefer this

Choose this endpoint when you need a simple, per-call PII redaction service without setting up your own NLP pipeline. Ideal for lightweight compliance workflows, pre-processing text before storage or ML training, or anonymizing user-generated content on the fly. Best suited for text up to 50,000 characters; for bulk document processing consider batching calls.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected
- Missing required 'text' field in body — validation error
- Malformed JSON body — parse error
- Empty string input — may return unchanged or empty response
- Payment not included or insufficient — x402 payment required error

## How this service works

Detect and redact PII / sensitive data from text.

## Output

Returns the input text with all detected PII and sensitive data replaced by redacted placeholders or masked tokens, preserving the original structure while removing personal identifiers such as names, emails, phone numbers, SSNs, addresses, and credit card numbers.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "text": {
       "type": "string",
       "description": "The text to redact PII from, max 50,000 characters."
      },
      "include_values": {
       "type": "boolean",
       "description": "If true, include the original raw values in 'entities'. Default false."
      }
     },
     "required": [
      "text"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pii-redactor-api-b9b87090/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pii-redactor.pdfextractapi.workers.dev](https://www.zero.xyz/host/pii-redactor.pdfextractapi.workers.dev/llms.txt)
