Authentication
Send your Custodian Labs API key in the X-API-Key header on every request. It's the
same key the Platform API and the SDKs use.
export CUSTODIAN_API_KEY="custodian_labs_..."
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": "Dana Reyes lives in Boston."}'
Get a key from API Keys in the Dashboard (how to get one). Call the API from your backend. Never put the key in browser code or source control.
| Status | Meaning |
|---|---|
401 | Key missing or not recognised. |
403 | Key expired or inactive. |
429 | Token, request or credit limit reached. |
See Error responses.