Vendor Onboarding & API Credentials
Authentication & Token Retrieval
/auth/token
curl -X POST https://api.charp.ai/auth/token \ -H "Content-Type: application/json" \ -d '{ "client_id": "your_client_id", "client_secret": "your_client_secret" }'
{ "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "def50200..." }
Accessing APIs
curl -X GET https://api.charp.ai/brands \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
expires_in
curl -X POST https://api.charp.ai/auth/refresh \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "def50200..." }'
{ "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "ghi60300..." }