# AgentUtility PII Detector & Redactor

> AgentUtility PII Detector & Redactor is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Scans text for personally identifiable information (emails, phones, SSNs, credit cards, addresses, names, IPs, API tokens), returns matches with risk level, and optionally redacts them with [TYPE] placeholder tokens.

## Facts

- Endpoint: POST https://x402.agentutility.ai/detect-pii
- 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/agentutility-pii-detector-redactor-6ce59383
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_36C7fQqSkM31_J2me8ZIR

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 agentutility-pii-detector-redactor-6ce59383 -d '<json body>'
```

Example prompt: Scan this text for any personal information like emails, phone numbers, SSNs, or credit card numbers, and redact them with [TYPE] tokens: 'Hi, my name is John Smith, reach me at john@example.com or 555-123-4567, SSN 123-45-6789.'

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call PII scanning without managing a dedicated NLP service or compliance tool. Ideal for agents that occasionally process user-submitted text, log snippets, or form data and need a quick privacy check or redaction step before passing data downstream. Best for use cases where privacy compliance, data leak prevention, or LLM input sanitization is needed on demand.

## Known failure modes

- Empty or missing text body returns a validation error
- Very long text may exceed input limits
- Unusual formatting or obfuscated PII (e.g. spaces inserted in SSN) may reduce detection accuracy
- Non-English text may result in lower name/address detection recall
- Payment failure via x402 returns 402 status before any processing occurs

## How this service works

Detects PII in text: emails, phones, SSNs, credit cards, addresses, names, IPs, and API tokens. Returns matches + risk_level, with optional redaction using [TYPE] tokens. Use it as a PII detector, personal data scanner, data leak scanner, or privacy redaction API.

## Output

Returns a list of detected PII matches, each with entity type (e.g. EMAIL, PHONE, SSN, CREDIT_CARD, ADDRESS, NAME, IP, API_TOKEN), the matched value and its position in the text, and an overall risk_level (e.g. low/medium/high). If redaction is requested, also returns the original text with all PII replaced by [TYPE] placeholder tokens.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "matches": [
   {
    "type": "email",
    "value": "john@acme.com"
   }
  ],
  "risk_level": "low",
  "match_count": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-pii-detector-redactor-6ce59383/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
