Catalog/text-redact

Text

Redact PII from text API

Mask personally identifiable information — emails, phone numbers, SSNs, payment cards, IPs — replacing them with [REDACTED] tags. Answers 'redact PII', 'scrub sensitive data', 'mask this before sending to an LLM'.

Price$0.01per request
MethodPOST
Route/v1/text/redact
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
textredactpiimaskprivacyanonymizescrub
API URLhttps://x402.hexl.dev/v1/text/redact
Integration docs
Example request
{
  "text": "Email a@b.com or call 555-123-4567"
}
Example response
{
  "redacted": "Email [REDACTED:email] or call [REDACTED:phone]",
  "counts": {
    "email": 1,
    "phone": 1,
    "ssn": 0,
    "card": 0,
    "ipv4": 0
  }
}
Input schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string"
    },
    "types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "email",
          "phone",
          "ssn",
          "card",
          "ipv4"
        ]
      }
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "redacted",
    "counts"
  ],
  "properties": {
    "redacted": {
      "type": "string"
    },
    "counts": {
      "type": "object",
      "additionalProperties": true
    }
  }
}