Supported entities
pii_entities limits which categories Guardian Layer touches. Omit it (or pass
["ALL"]) to process everything detected.
| Entity | Covers | Example |
|---|---|---|
PERSON | People names and name-like references. | Dana Reyes, Dr. Emily Chen |
PHONE_NUMBER | Phone numbers. | 555-0100, +1 415 555 0123 |
EMAIL_ADDRESS | Email addresses. | alex@example.com |
LOCATION | Addresses, cities, regions, and location-like references. | 123 Market Street, Auckland |
DATE_TIME | Dates and time references. | March 3, 2026-06-04 |
ID_NUMBER | Account numbers, IDs, document numbers, and similar identifiers. | ACCT-8842, ID 123456 |
AGE | Age expressions. | 45 years old, aged 67 |
OCCUPATION | Job titles, professions, and role references. | nurse, Senior Manager, engineer |
ALL | All 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.