Skip to main content

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.

StatusMeaning
401Key missing or not recognised.
403Key expired or inactive.
429Token, request or credit limit reached.

See Error responses.