# SiteCheck PII Redaction

> SiteCheck PII Redaction is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Replaces personally identifiable information (emails, phone numbers, IBANs, credit card numbers, IP addresses, and optionally person names) in text with labeled placeholders

## Facts

- Endpoint: POST https://api.sitecheck-api.workers.dev/api/redact?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-pii-redaction-393d8049
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gjusX_n1tzBjcsgj93i7B

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 sitecheck-pii-redaction-393d8049 -d '<json body>'
```

Example prompt: Can you redact all the PII from this text, including person names, emails, phone numbers, credit cards, IBANs, and IP addresses: 'Contact John Smith at john@example.com or call +1-800-555-1234, his card is 4111111111111111'?

## When to prefer this

Choose this endpoint when you need fast, pattern-based PII redaction without sending data to a heavyweight NLP pipeline. It is ideal for pre-processing text before passing it to an LLM, for compliance workflows requiring IBAN/card/email removal, or when you need deterministic placeholder labels (e.g. [EMAIL]) rather than full entity-recognition annotations. Prefer alternatives if you need redaction of highly domain-specific PII (e.g. medical record IDs) or require a full named-entity recognition model across many entity types beyond the supported five.

## Known failure modes

- Text exceeds 20,000 character limit — request will be rejected or truncated
- False positives: valid-looking but non-PII sequences matched by patterns (e.g. random number matching Luhn)
- False negatives: unusual phone formats not recognized by libphonenumber
- Name detection may miss uncommon or non-Western names when names flag is true
- Network or payment failure returning 402 if USDC balance is insufficient

## How this service works

Replaces personal data in a text with placeholders: e-mail addresses, phone numbers, IBANs (mod 97 checked), payment card numbers (Luhn checked only), IPv4 addresses and, with names true, person names found by the chat model. Returns the redacted text and counts per type. Original values are never returned.

## Output

Returns the input text with PII replaced by labeled placeholders like [EMAIL], [PHONE], [CARD], [IBAN], [IP], and optionally [NAME]. Also returns a counts object showing how many of each PII type were found, a source field describing the detection methods used (e.g. Luhn check for cards, mod-97 for IBANs, libphonenumber for phones), and a checkedAt timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text, up to 20,000 characters"
  },
  "names": {
   "type": "boolean",
   "description": "true to also replace person names (uses the chat model)"
  },
  "types": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Any of email, phone, iban, card, ip (default all)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Mail [EMAIL], card [CARD], IBAN [IBAN], server [IP], call [PHONE].",
  "counts": {
   "ip": 1,
   "card": 1,
   "iban": 1,
   "name": 0,
   "email": 1,
   "phone": 1
  },
  "source": "patterns: card (Luhn), IBAN (mod 97), e-mail, IPv4, phone (libphonenumber)",
  "checkedAt": "2026-10-14T07:01:47.674Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-pii-redaction-393d8049/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
