Webhook of the messages WhatsApp

From English wiki app24.online
Jump to navigation Jump to search

Webhook – is a mechanism for notifying one system about events in another. With the help of a webhook, you can implement your own algorithms for automating business processes.

For more information, see the example of launching a business process via webhook (download the archive).

Incoming parameters:

  • channel id;
  • corporate phone number;
  • customer's phone number;
  • message text;
  • Full NAME of the sender.

To use the webhook, in the ChatsApp24 settings window, enter the webhook URL in the Called URL field:


webhook_settings_eng


To get data on the webhook side via a php script, use the format:

$postData = json_decode(file_get_contents('php://input'), true);