Skip to main content

Supported entities

pii_entities limits which categories Guardian Layer touches. Omit it (or pass ["ALL"]) to process everything detected.

EntityCoversExample
PERSONPeople names and name-like references.Dana Reyes, Dr. Emily Chen
PHONE_NUMBERPhone numbers.555-0100, +1 415 555 0123
EMAIL_ADDRESSEmail addresses.alex@example.com
LOCATIONAddresses, cities, regions, and location-like references.123 Market Street, Auckland
DATE_TIMEDates and time references.March 3, 2026-06-04
ID_NUMBERAccount numbers, IDs, document numbers, and similar identifiers.ACCT-8842, ID 123456
AGEAge expressions.45 years old, aged 67
OCCUPATIONJob titles, professions, and role references.nurse, Senior Manager, engineer
ALLAll supported entity categories.Use when you do not want to filter.
Prefer no code? Use the Dashboard

Everything on this page also works in the Dashboard. Open API Testing, pick your key, paste text or upload a file, choose the mode and the types of data, then click Mask Now.

Text Requests​

For text endpoints, pass pii_entities as a JSON list:

{
"text": "Dr. Emily Chen called Alex at 555-0100.",
"masking_type": "redact",
"pii_entities": ["PERSON", "PHONE_NUMBER"]
}
TypeScript
await new GuardianLayer().deidentifyTextOutputs(
"Dr. Emily Chen called Alex at 555-0100.",
{ maskingType: "redact", piiEntities: ["PERSON", "PHONE_NUMBER"] },
);

Applies to every mode: transform, redact and placeholder.

File requests​

File endpoints take pii_entities as a comma-separated form field:

-F "pii_entities=PERSON,EMAIL_ADDRESS"

In the SDKs, pass the same list you would for text.