# Text Tools API – PII Scrub

> Text Tools API – PII Scrub is a paid API for AI agents from texttools.ggez.my.id, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-01).

Redacts personally identifiable information (emails, phone numbers, IBAN, card numbers) from text, paid per call in USDC via x402.

## Facts

- Endpoint: POST https://texttools.ggez.my.id/v1/pii-scrub?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-tools-api-pii-scrub-9c52ef39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rbvCMaXkoQWyuUkZCSt4r

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 text-tools-api-pii-scrub-9c52ef39 -d '<json body>'
```

Example prompt: Can you scrub all PII — emails, phone numbers, credit card numbers, and IBANs — from this text before I store it: 'Contact John at john@example.com or +1-555-123-4567, his card ending 4111111111111111'?

## When to prefer this

Choose this endpoint when you need deterministic, rule-based PII redaction covering emails, phone numbers, IBANs, and card numbers at low cost ($0.01/call) and want a simple pay-per-use model via x402/USDC on Base — ideal for pipelines that cannot use ML-based or subscription PII services.

## Known failure modes

- Payment not provided or insufficient USDC — returns 402 Payment Required
- Malformed request body — returns 400 with validation error
- Unrecognized PII patterns may not be redacted (false negatives for edge-case formats)
- Rate limiting or server errors may return 429 or 5xx

## How this service works

Deterministic text utilities paid per call in USDC on Base: CSV to JSON with type inference, and PII redaction (emails, phones, IBAN, card numbers). Free /health. 0.01 USDC per call via x402 v2.

## Output

Returns a JSON object with a boolean 'ok' field and the sanitized text with all detected PII (email addresses, phone numbers, IBAN numbers, and credit/debit card numbers) replaced by redaction placeholders.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object"
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-tools-api-pii-scrub-9c52ef39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from texttools.ggez.my.id](https://www.zero.xyz/host/texttools.ggez.my.id/llms.txt)
