Skip to main content

Detect sensitive terms

POST https://privacy.custodianlabs.io/api/v1/analyze/text/proprietary

Lists the sensitive terms in a text without changing it. Use it to review or audit before you de-identify.

Request body​

FieldTypeRequiredDescription
textstringYesThe text to analyze.
curl -X POST "https://privacy.custodianlabs.io/api/v1/analyze/text/proprietary" \
-H "X-API-Key: $CUSTODIAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "The Meridian account is managed by Dana Reyes."}'

Response​

FieldDescription
sensitive_wordsThe terms flagged as sensitive, such as ["Meridian", "Dana Reyes"].
tokensThe input split into tokens.
suggestionsCandidate replacements for each sensitive term.
words_in_hullRelated terms found near the sensitive ones.
levelThe detection level used.

SDK equivalents: analyze_proprietary() in Python, analyzeProprietary() in TypeScript.