# Desanatization PII Sanitizer

> Desanatization PII Sanitizer is a paid API for AI agents from desanatization-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Removes personally identifiable information (PII) from text, redacting SSNs, credit card numbers, emails, phone numbers, secrets, and URL tokens

## Facts

- Endpoint: GET https://desanatization-production.up.railway.app/api/resource?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/desanatization-pii-sanitizer-a642f5cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mu3qy-87yEtslRCQolOu-

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 desanatization-pii-sanitizer-a642f5cf
```

Example prompt: Can you sanitize this text before we log it — it might contain emails, phone numbers, SSNs, or credit card numbers: 'Call John at 415-555-0192 or john.doe@email.com, card ending 4111 1111 1111 1111, SSN 123-45-6789'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call PII scrubber that handles multiple redaction classes (SSNs, credit cards, emails, phones, secrets, URL tokens) in a single call with per-category counts, especially for AI agent pipelines that need to sanitize user input before logging, storing, or forwarding to downstream models.

## Known failure modes

- Missing 'text' query parameter returns an error response
- Empty input string may return success with zero redactions
- Malformed request may result in HTTP 4xx
- Service unavailability on Railway hosting returns HTTP 5xx
- Very long text inputs may hit character limits or timeout

## How this service works

PII sanitization for AI agents

## Output

Returns a JSON object with a boolean success flag, the sanitized clean text (PII replaced with redaction placeholders), a requestId, timestamp, input and output character counts, and a redactions object with integer counts per category (SSNs, cards, emails, phones, secrets, urlTokens).

## 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": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to sanitize"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "clean",
      "redactions"
     ],
     "properties": {
      "clean": {
       "type": "string",
       "description": "Sanitized text"
      },
      "success": {
       "type": "boolean"
      },
      "requestId": {
       "type": "string"
      },
      "timestamp": {
       "type": "string"
      },
      "inputChars": {
       "type": "integer"
      },
      "redactions": {
       "type": "object",
       "properties": {
        "ssns": {
         "type": "integer"
        },
        "cards": {
         "type": "integer"
        },
        "emails": {
         "type": "integer"
        },
        "phones": {
         "type": "integer"
        },
        "secrets": {
         "type": "integer"
        },
        "urlTokens": {
         "type": "integer"
        }
       },
       "description": "Counts per redaction class"
      },
      "outputChars": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/desanatization-pii-sanitizer-a642f5cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from desanatization-production.up.railway.app](https://www.zero.xyz/host/desanatization-production.up.railway.app/llms.txt)
