Message Received
This is a notification from the API when a message is received at the Ongair hosted account. It takes the form of a HTTP POST to the specified URL with the following parameters:
| Field | Type | Value | Meaning |
|---|---|---|---|
| notification_type | String | MessageReceived | The type of the notification |
| phone_number | String | (country code)(phone number) e.g. 254722200200 | Phone number that sent the message |
| 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.