# PII Detection and Redaction: Emails, Phones, Cards, IBANs

> PII Detection and Redaction: Emails, Phones, Cards, IBANs is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Scans text up to 20,000 characters for personal data (emails, phones, credit cards, IBANs, SSNs, IPs, crypto wallets) and returns redacted text with each hit replaced by a label like [EMAIL], plus positions and masked values.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/text/pii?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-pii-detection-and-redaction-a93d0cc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e7xX5T97L5k4PXfdNkgl-

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 agent-data-tools-revmesh2074-workers-dev-pii-detection-and-redaction-a93d0cc5
```

Example prompt: Before we store this customer support message in the database, scan it for any personal data like emails, phone numbers, credit card numbers, or IBANs, and give me back a redacted version with all hits replaced by labels like [EMAIL] or [CREDIT_CARD].

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call PII scan with no account setup, covering the most common structured PII types (emails, phones, credit cards with Luhn validation, IBANs with mod-97, SSNs, IPs, crypto wallets). It is ideal for pre-logging sanitization, GDPR compliance pipelines, or scrubbing text before sending it to an LLM. Prefer alternatives if you also need to detect unstructured PII like names or postal addresses, or if you need batch processing at scale without per-call costs.

## Known failure modes

- Text exceeds 20,000 characters — request rejected or truncated
- Invalid `types` filter value returns an error or ignores unknown type tokens
- Names and street addresses are not detected — agent may expect them and find no hit
- Luhn or mod-97 validation may cause false negatives for malformed card/IBAN numbers
- Network timeout on large near-limit texts
- Payment failure (x402) if caller has no credits and no USDC balance — call not charged

## How this service works

Find personal data in a text and get it back redacted: emails, phone numbers, card numbers (Luhn-checked), IBANs (mod-97), US SSNs, IP and crypto wallet addresses, each with its position, plus the text with every hit replaced by a label such as [EMAIL]. Hits are shown masked. Up to 20,000 characters; names and street addresses are not detected. Use before logging, storing or sending text to a model.

## Output

Returns a JSON object with: `found` (total hit count), `items` (array of detected PII, each with type, start/end character positions, and a masked value), `counts` (per-type breakdown), and `redacted` (the original text with every PII hit replaced by a bracketed label such as [EMAIL], [PHONE], [CREDIT_CARD], [IBAN], [US_SSN], [IP_ADDRESS], or [CRYPTO_ADDRESS]).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to scan (up to 20,000 characters)"
  },
  "types": {
   "type": "string",
   "description": "Optional comma-separated types to look for: email, iban, credit_card, us_ssn, crypto_address, ip_address, phone (default all)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "found": {
   "type": "number"
  },
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "end": {
      "type": "number"
     },
     "type": {
      "type": "string"
     },
     "start": {
      "type": "number"
     },
     "masked": {
      "type": "string"
     }
    }
   }
  },
  "counts": {
   "type": "object",
   "properties": {
    "email": {
     "type": "number"
    },
    "phone": {
     "type": "number"
    },
    "credit_card": {
     "type": "number"
    }
   }
  },
  "redacted": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-pii-detection-and-redaction-a93d0cc5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
