Notification API
Send a message to a customer on a connected channel such as LINE.
Base URL: https://notification-api.pcampus.co
How to connect
POST https://notification-api.pcampus.co/v1/notifications/send
Authorization: Bearer pip_YOUR_API_KEY
x-tenant-id: your-tenant-id
Content-Type: application/jsonSample request
{
"channel": "line",
"recipientId": "cust_001",
"templateId": "order_update",
"variables": {
"customerName": "Alex",
"orderId": "ORD-1001"
}
}Sample response
{
"notificationId": "ntf_001",
"channel": "line",
"status": "sent"
}| Status | When |
|---|---|
200 | Sent or queued |
401 | Invalid token |
400 | Missing channel or recipient |
Connect the channel in Console first, then call the API.