# PII Redaction API

> PII Redaction API is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-22).

Detects and redacts personally identifiable information (PII) from text, replacing sensitive data with labeled placeholders

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/pii-redact?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pii-redaction-api-0ae999f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g-4ESc8QydJ5ltr5RgY0O

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-redaction-api-0ae999f9 -d '<json body>'
```

Example prompt: Redact all personal information from this text before I store it: 'Hi, I'm Jane Doe, you can reach me at jane@example.com or call 555-123-4567.'

## When to prefer this

Choose this endpoint when you need fast, pay-per-call PII redaction without setting up an account or managing API keys. Ideal for AI agents that need to sanitize text on demand using the x402 micropayment protocol on Base. At $0.003 per call it is cost-effective for moderate volumes. Prefer alternatives if you need custom PII entity types, multi-language support, or bulk batch processing at high volume.

## Known failure modes

- Text exceeds 400,000 character limit — request rejected
- Malformed JSON input — 400 error returned
- Payment not sent — HTTP 402 returned with payment instructions
- Network timeout on very large text payloads
- False negatives: unusual PII formats may not be detected

## How this service works

41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.

## Output

Returns a JSON object with the redacted text (PII replaced by bracketed type labels like [EMAIL] and [PHONE]), the total count of redactions made, and a breakdown of counts by PII type (SSN, card, IPv4, email, phone).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 400000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "pii_redact",
  "total": 2,
  "redacted": "Mail [EMAIL] or call [PHONE].",
  "counts_by_type": {
   "ssn": 0,
   "card": 0,
   "ipv4": 0,
   "email": 1,
   "phone": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pii-redaction-api-0ae999f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
