# Anicca Prompt Sanitizer — PII Masking for AI Agents

> Anicca Prompt Sanitizer — PII Masking for AI Agents is a paid API for AI agents from anicca-x402-discovery-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Deterministically detects and masks PII (emails, phone numbers, SSNs, credit card numbers, IP addresses) in text prompts before they are sent to AI models.

## Facts

- Endpoint: POST https://anicca-x402-discovery-production.up.railway.app/prompt-sanitizer
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anicca-prompt-sanitizer-pii-masking-for-ai-agents-8e65e09c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZMLkNqiiExHuRY4xiP7s_

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 anicca-prompt-sanitizer-pii-masking-for-ai-agents-8e65e09c -d '<json body>'
```

Example prompt: Before sending this user message to the AI, sanitize it to mask any PII — redact emails, phone numbers, SSNs, credit card numbers, and IP addresses so nothing sensitive leaks into the model call.

## When to prefer this

Choose this endpoint when you need a deterministic, rule-based PII masking step — not an LLM-based approach — before routing text to an AI model. Ideal for compliance pipelines (GDPR, HIPAA, PCI-DSS), agent workflows that handle user-submitted content, or any situation where you need consistent, auditable redaction of emails, phones, SSNs, card numbers, and IPs without model hallucination risk.

## Known failure modes

- Missing or malformed input text returns a 400 validation error
- Payment not included or insufficient USDC results in a 402 Payment Required response
- Ambiguous or novel PII formats may not be detected by the deterministic rules
- Non-English PII patterns (e.g. international phone formats) may be missed
- Service unavailability on Railway hosting returns 503

## How this service works

Deterministic PII sanitizer for AI agents — masks emails, phones, SSNs, cards, IPs.

## Output

A sanitized version of the input text where PII tokens (emails, phone numbers, SSNs, credit card numbers, IP addresses) have been replaced with masked placeholders, ensuring no sensitive data passes through to downstream AI model calls.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {}
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anicca-prompt-sanitizer-pii-masking-for-ai-agents-8e65e09c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anicca-x402-discovery-production.up.railway.app](https://www.zero.xyz/host/anicca-x402-discovery-production.up.railway.app/llms.txt)
