Sanitext
Entity types

What Sanitext detects

Every PII entity type Sanitext finds and redacts, with examples.

Entity

Detect and redact email addresses with the Sanitext API

Sanitext finds email addresses with the EMAIL label. POST text to /v1/detect to get spans with byte offsets, a confidence score, and the matched text. POST to /v1/redact to replace each address with [EMAIL]. It runs on our own model, so raw text never goes to a third-party LLM.

Entity

Detect and redact phone numbers in text

Sanitext detects phone numbers with the PHONE label. POST text to /v1/detect to get spans (label, byte offsets, confidence score, matched text), or to /v1/redact to mask each number as [PHONE]. It handles local, international, and formatted numbers across 30+ languages.

Entity

Detect and Redact Names in Text

Sanitext detects names in text using the FIRSTNAME and LASTNAME labels, plus PREFIX for titles like "Dr." Send text to POST /v1/detect to get entity spans with byte offsets and a confidence score, or POST /v1/redact to mask each name as [FIRSTNAME] or [LASTNAME]. Works in 30+ languages.

Entity

Detect and redact postal addresses with the ADDRESS label

Sanitext detects postal addresses using the ADDRESS label. POST text to /v1/detect and it returns each address as a span with byte offsets, a confidence score, and the matched text. POST to /v1/redact and each address is replaced inline with [ADDRESS]. It works across 30+ languages.

Entity

Detect and redact account & credit-card numbers

Sanitext detects account and credit-card numbers under the model label ACCOUNT. POST text to /v1/detect and get back each match as a span with byte offsets, the matched text, and a confidence score. POST to /v1/redact to replace every match with [ACCOUNT] in one call.

Entity

Detect and redact dates with the DATE label

Sanitext detects dates with its DATE label, returning each match as a span with byte start and end offsets, a confidence score, and the matched text from POST /v1/detect. POST /v1/redact replaces every date span with [DATE]. It finds numeric, written, and relative dates across 30-plus languages.

Entity

Detect and Redact URLs in Text

Sanitext detects URLs in text and labels each one URL. POST text to /v1/detect to get spans with byte offsets, a confidence score, and the matched link. POST to /v1/redact to replace every URL with [URL]. It catches full, bare, and query-string links across 30+ languages.

Entity

Detect and redact secrets, API keys and tokens

Sanitext flags secrets with the SECRET label: API keys, access tokens, bearer tokens, private keys and high-entropy credentials. POST text to /v1/detect for spans (label, byte offsets, score, matched text) or /v1/redact to return the same text with each secret replaced by [SECRET].