Skip to main content

Platform API Authentication

Every request needs X-API-Key. Base URL https://platform.custodianlabs.io/v1.

export CUSTODIAN_API_KEY="custodian_labs_..."

curl -X POST "https://platform.custodianlabs.io/v1/apps/custodian_xxxx/chat" \
-H "X-API-Key: $CUSTODIAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "What is the return policy?"}'

Keys come from API Keys in the Dashboard (walkthrough). Keep them server-side — never in browser code or source control.

StatusMeaning
401Key missing, invalid, or inactive
403Key expired
429Token or request limit hit

Next​

Chat