# agent402.tools PII Redaction

> agent402.tools PII Redaction is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Redacts sensitive PII (emails, phone numbers, credit card numbers, IPs, SSNs) from text and returns the sanitized text with counts by type

## Facts

- Endpoint: POST https://agent402.tools/api/redact
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-pii-redaction-b081309c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UZUutNj8131ENJwlO4PBk

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 agent402-tools-pii-redaction-b081309c -d '<json body>'
```

Example prompt: Can you redact all the sensitive info from this text — emails, phone numbers, SSNs, credit card numbers, and IPs — and tell me how many of each type were found: 'Contact John at john@example.com or 555-123-4567, his SSN is 123-45-6789 and card is 4111-1111-1111-1111.'

## When to prefer this

Use this endpoint when you need to sanitize free-form text of multiple PII types in a single call and want a count summary by type — ideal for pre-processing user submissions, logs, or documents before storage or sharing.

## Known failure modes

- Missing or empty 'text' field returns an error
- Text too large may be rejected or truncated
- Payment failure (x402) if USDC is not provided
- No PII found returns original text with zero counts

## How this service works

Mask emails, phone numbers, credit-card-like numbers, IPs, and SSNs in text. Returns the redacted text and counts by type.

## Output

Returns the redacted version of the input text with sensitive values replaced by masked placeholders, along with a breakdown of counts for each PII type detected (email, phone, credit card, IP, SSN).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counts": {
   "email": 1,
   "phone": 1
  },
  "result": "reach me at [EMAIL] or [PHONE]"
 }
}
```

## More

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