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
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The 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
| Field | Description |
|---|---|
sensitive_words | The terms flagged as sensitive, such as ["Meridian", "Dana Reyes"]. |
tokens | The input split into tokens. |
suggestions | Candidate replacements for each sensitive term. |
words_in_hull | Related terms found near the sensitive ones. |
level | The detection level used. |
SDK equivalents: analyze_proprietary() in Python, analyzeProprietary() in
TypeScript.