Register a new webhook endpoint.
| Field | Required | Description |
|---|---|---|
url | Yes | HTTPS endpoint to receive events |
type | Yes | Event type: message_received, message_sent, sent_message, message_delivered, message_read, message_failed, call, or all |
platform | No | Defaults to whatsapp |
Bearer token for authentication. Format: Bearer YOUR_BEARER_TOKEN
HTTPS endpoint to receive events
"https://your-server.com/webhook"
Event type to subscribe to
message_received, message_sent, sent_message, message_delivered, message_read, message_failed, call, all "message_received"
Platform (defaults to whatsapp)
"whatsapp"