# Pocket Network PII Redaction

> Pocket Network PII Redaction is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-03).

Detects and redacts personally identifiable information (names, addresses, SSNs, emails, phone numbers) from text, returning both findings and a masked output.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/pii-redaction?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-pii-redaction-79556c56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aDJThWgz6AcfY_aQ99fAy

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 pocket-network-pii-redaction-79556c56 -d '<json body>'
```

Example prompt: Can you scan this text and redact any PII in it — mask names, addresses, SSNs, emails, and phone numbers — and show me both the masked version and what was found: 'Please contact John Smith at john.smith@email.com or call 555-867-5309. His SSN is 123-45-6789 and he lives at 42 Elm Street, Springfield.'

## When to prefer this

Choose this endpoint when you need deterministic, ruleset-based PII detection and masking in a single call without setting up an account or managing API keys — ideal for compliance workflows, log sanitization, or pre-processing text before storage. Prefer this over ML-based NER services when you need consistent, reproducible results and pay-per-use economics via USDC.

## Known failure modes

- Missing or empty 'text' field returns a validation error
- Extremely long text inputs may be truncated or rejected
- PII patterns not covered by the current ruleset version will not be detected (false negatives)
- Ambiguous tokens (e.g. short names that are also common words) may produce false positives
- Payment failure (insufficient USDC balance) returns a 402 error and no result

## How this service works

Detect and redact PII in text: find and mask names, addresses, SSNs, emails, and phone numbers. POST /v1/pii with {text} and get findings and masked output as one JSON object. Deterministic per ruleset version. Pay per request in USDC; no account, no API key.

## Output

A JSON object containing the masked version of the input text (with PII replaced by placeholder tokens) and a list of findings, each identifying the type of PII detected (e.g. NAME, EMAIL, SSN, PHONE, ADDRESS), its location in the original text, and the matched value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to inspect for PII."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "portal": {
   "serviceId": "pii-redaction",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

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