Check text for personal data
Same detection as redaction but returns only the findings and a clean flag, for gating a pipeline. The redacted text is not returned. Metered as pii.scan.
POST
/v1/pii/scanAuthorization
AuthorizationBearer token (JWT) · headerrequiredBearer API key issued for your account. Send Authorization: Bearer <key>.
Request body
requiredapplication/jsontextstringrequiredUp to 1 MiB.
Responses
200
Findings
cleanbooleanrequiredcountintegerrequiredentity_typesstring[]requiredfindingsPiiFinding[]requiredShow propertiesHide properties
Array of
PiiFindingentity_typestringrequiredstartintegerrequiredByte offset of the first byte of the span.
endintegerrequiredByte offset one past the last byte.
scorenumberrequired0 to 1.
400
Bad request
string401
Missing or invalid bearer token
string403
Billing or plan entitlement blocked the request
string502
Upstream service (arXiv, YouTube, web page) failed
string503
The backing service is not configured or is busy
string