Intelligence API
Read a sample recommendation from data already in PBCP — this API does not send messages to customers.
Base URL: https://pbcp-api.pcampus.co
How to connect
GET https://pbcp-api.pcampus.co/v1/intelligence/story/customers/CUST-1
Authorization: Bearer pip_YOUR_API_KEY
x-tenant-id: your-tenant-idSample response
{
"customerId": "CUST-1",
"summary": "This customer has not purchased recently",
"nextStep": "Send a return offer"
}| Status | When |
|---|---|
200 | Recommendation available |
401 | Invalid token |
404 | Not enough data yet |
Send the actual message with Mail or Notification