OpenAPI 3.1.0raw.githubusercontent.com2026-08-172766453.1 MB

f54fa34db0f4

Detect PII

Reports whether the supplied text contains personally identifiable information, optionally with a per-type entity breakdown.

post/v2/pii/detect

Request body

textstring

Text to analyse.

languagestring

BCP-47 language code. Unset means auto-detect.

thresholdnumber double

Global minimum recognizer score (0.0-1.0). Unset uses the provider default.

include_entitiesboolean

When true, the response includes a per-type entity breakdown.

Response

OK

has_piiboolean
entitiesobject

Per-entity-type counts. Populated only when include_entities was set.