Group Message Received
This is a notification from the API when a message is received at a group to which the Ongair hosted account belongs. It takes the form of a HTTP POST to the specified URL with the following parameters:
Field | Type | Value | Meaning |
---|---|---|---|
notification_type | String | GroupMessageReceived | The type of the notification |
phone_number | String | (country code)(phone number) e.g. 254722200200 | Phone number that sent the message |
group_id | Integer | 18 | The id of the group |
text | String | Hello world | The message text that was received |
account | String | 254722123456 | Your WhatsApp account number |
The client should respond with a HTTP status code of 200. The response body is ignored.