Create webhook
create_webhookRegister an HTTPS webhook URL to receive real-time POST notifications for selected ChatPush events, enabling servers, CRMs, or automation tools to react to incoming messages and delivery status updates.
Instructions
Register a webhook URL to receive real-time notifications for specific ChatPush events (e.g. whatsapp_log_out, delivery status updates, incoming messages). Use it when the user wants their server, CRM or automation (n8n, Make, Zapier) to receive replies or react to WhatsApp/Telegram events.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"types": "<types>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTPS URL to receive notifications as POST requests. | |
| types | Yes | Event types: whatsapp_log_out (WhatsApp account disconnected); whatsapp_log_in (WhatsApp account connected); whatsapp_incoming_msg (incoming and outgoing WhatsApp messages (with file download links) and incoming WhatsApp calls); tdlib_incoming_msg (incoming and outgoing personal Telegram messages (with file download links) and Telegram calls); max_incoming_msg (incoming and outgoing messages of a connected MAX account); whatsapp_status_msg (statuses of outgoing WhatsApp messages: sent, received, read, played, failed, expired, …). |