# x402 AI Tools – PII Detection & Redaction

> x402 AI Tools – PII Detection & Redaction is a paid API for AI agents from ai.kagurazaka.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-30).

Detects personally identifiable information (names, addresses, emails, phone numbers, SSNs, credit cards, passwords, IPs, etc.) in English or Spanish text using Amazon Comprehend, returning entity types, offsets, confidence scores, and a redacted version of the text.

## Facts

- Endpoint: POST https://ai.kagurazaka.dev/v1/pii?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-tools-pii-detection-redaction-c210eeeb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GoqS7EHeULCJMIEbIYADj

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 x402-ai-tools-pii-detection-redaction-c210eeeb -d '<json body>'
```

Example prompt: Scan this support ticket for any PII — names, email addresses, phone numbers, credit card numbers, or SSNs — and give me a redacted version with each one replaced: 'Hi, I'm John Smith, my email is john@example.com and my card number is 4111-1111-1111-1111, call me at 555-234-5678.'

## When to prefer this

Choose this endpoint when you need both PII detection (with entity types, positions, and confidence scores) and automatic redaction of sensitive information in a single call, especially for English or Spanish text. It is backed by Amazon Comprehend's trained PII models, making it more accurate than regex-based alternatives. Prefer it over general NER endpoints when privacy compliance (GDPR, HIPAA, CCPA) is the primary concern.

## Known failure modes

- Text exceeds 5000 bytes — request rejected or truncated
- Unsupported language specified — only 'en' and 'es' are valid
- Empty or whitespace-only text — returns empty entity list
- Network or Amazon Comprehend service outage — 5xx error
- Payment failure via x402 — 402 response before processing
- Ambiguous content where PII confidence scores are low — entities may be missed or misclassified

## How this service works

Finds personally identifiable information (names, addresses, emails, phone numbers, credit card and bank numbers, SSNs, passwords, IP addresses and more) in English or Spanish text with Amazon Comprehend. Returns each entity's type, offsets and score, and the text with each one replaced by [TYPE].

## Output

Returns a list of detected PII entities, each with its type (e.g. NAME, EMAIL, PHONE, SSN, CREDIT_DEBIT_NUMBER, PASSWORD, IP_ADDRESS, ADDRESS), start and end character offsets within the input text, and a confidence score. Also returns a redacted copy of the text with each PII span replaced by [TYPE].

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "the text, up to 5000 bytes of UTF-8"
  },
  "language": {
   "type": "string",
   "description": "en or es; detected when omitted"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-tools-pii-detection-redaction-c210eeeb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai.kagurazaka.dev](https://www.zero.xyz/host/ai.kagurazaka.dev/llms.txt)
