# BitBooth PII Redact

> BitBooth PII Redact is a paid API for AI agents from app.heinrichstech.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Strips emails, phone numbers, SSNs, credit card numbers, IPv4 addresses, and hex secrets from a text blob before it is sent to an LLM, using deterministic regex-based redaction.

## Facts

- Endpoint: POST https://app.heinrichstech.com/v1/cdp/pii-redact
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitbooth-pii-redact-e556bc04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cl6kneJl4P1yNa0cFZJIK

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 bitbooth-pii-redact-e556bc04 -d '<json body>'
```

Example prompt: Before sending this patient intake note to the LLM, run it through PII redaction to strip out any emails, phone numbers, SSNs, credit card numbers, IP addresses, and hex-looking secrets — I need it sanitized for compliance.

## When to prefer this

Choose this endpoint when you need fast, deterministic, regex-based PII removal before feeding text to an LLM, especially in regulated industries (health, finance, legal) where compliance is mandatory. Prefer it over LLM-based redaction when you need guaranteed determinism, low latency, and no inference cost. Pairs naturally with the BitBooth prompt-injection-scan endpoint as a two-step sanitize-before-model pipeline.

## Known failure modes

- Input text too large — payload size limits may cause rejection
- Novel or obfuscated PII formats not matching regex patterns will pass through unredacted
- Non-standard phone number formats or international numbers may not be caught
- Payment of 0.002 USDC required — insufficient balance or failed x402 payment causes request rejection
- Empty or missing text body returns an error

## How this service works

BitBooth PII Redact: pay 0.002 USDC, strip emails, phones, SSNs, credit cards, IPv4 addresses, and hex-looking secrets from a text blob before passing it to an LLM. Compliance primitive for agents in regulated industries (health, finance, legal). Pure regex — no LLM inference, deterministic output.

## Output

A sanitized version of the input text with all detected PII tokens replaced by redaction placeholders (e.g. [EMAIL], [PHONE], [SSN], [CREDIT_CARD], [IPV4], [SECRET]). Output is deterministic and regex-driven — no LLM inference involved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string"
      },
      "patterns": {
       "type": "array",
       "items": {
        "enum": [
         "email",
         "phone",
         "ssn",
         "creditCard",
         "ipv4",
         "hexSecret"
        ],
        "type": "string"
       }
      },
      "replacement": {
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitbooth-pii-redact-e556bc04/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from app.heinrichstech.com](https://www.zero.xyz/host/app.heinrichstech.com/llms.txt)
