How Webhooks Work
When an event occurs (like a message being delivered), WeTalk sends an HTTP POST request to your configured endpoint with event data.
W
WeTalkYour Server
Setting Up Webhooks
- 1Go to Dashboard > Webhooks
- 2Click "Add Webhook" and enter your endpoint URL
- 3Select the events you want to receive
- 4Save and test your webhook
Webhook Payload
Example Payload
{
"event": "message.delivered",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"message_id": "msg_abc123",
"to": "+1234567890",
"status": "delivered",
"delivered_at": "2024-01-15T10:30:00Z"
}
}Available Events
| Event | Description |
|---|---|
message.sent | A message was successfully sent |
message.delivered | A message was delivered to the recipient |
message.failed | A message failed to deliver |
message.received | An inbound message was received |
call.initiated | A voice call was initiated |
call.answered | A voice call was answered |
call.completed | A voice call ended |