Webhooks
Webhooks allow your application to receive real-time notifications when events occur in CekatAI.
Available Events
| Event | Description |
|---|---|
| message.received | New message received |
| message.sent | Message sent successfully |
| message.delivered | Message delivered to recipient |
| message.read | Message read by recipient |
| conversation.created | New conversation started |
| conversation.resolved | Conversation resolved |
| ticket.created | New ticket created |
| ticket.updated | Ticket status changed |
Setup
- Go to Dev Page > Webhooks in the dashboard
- Click Add Webhook
- Enter your endpoint URL
- Select the events you want to receive
- Click Save
Webhook Payload
json
{
"event": "message.received",
"timestamp": "2025-03-28T10:00:00Z",
"data": {
"id": "msg_abc123",
"from": "+62812345678",
"body": "Hello!",
"channel": "whatsapp"
}
}
Security
All webhook payloads include a signature header for verification. Validate the signature using your webhook secret to ensure payloads are authentic.
