Masker

PII detection and masking API

Endpoint

POST /v1/masker/mask

Request Body

{
  "text": "Contact john@acme.com or +1-555-1234",
  "options": {
    "entities": ["EMAIL", "PHONE", "NAME", "ADDRESS"],
    "format": "brackets" // "brackets" | "redact" | "hash"
  }
}

Response

{
  "success": true,
  "masked_text": "Contact [EMAIL_1] or [PHONE_1]",
  "entities": [
    {"type": "EMAIL", "original": "john@acme.com", "masked": "[EMAIL_1]"},
    {"type": "PHONE", "original": "+1-555-1234", "masked": "[PHONE_1]"}
  ],
  "credits_used": 1
}

Supported PII Types

EMAIL
PHONE
NAME
ADDRESS
SSN
CREDIT_CARD
IP_ADDRESS
DATE_OF_BIRTH

Pricing

$0.001 per request. First 1,000 free each month.