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.
| Status | Meaning |
|---|---|
401 | Key missing, invalid, or inactive |
403 | Key expired |
429 | Token or request limit hit |