Incoming - Updated 12/20
Inbound-Message Received
You can receive the inbound messages directly in your application using Termii's Webhook Notiifcation. Add your webhook url in your termii developer console
Options | Description |
---|---|
type | string Represents the type of message that is received |
id | string Represents the ID of the request sent |
message_id | string Represents the ID of the message received |
receiver | string Represents the destination phone number |
sender | string Represents the source or sender of the message |
message | string Text of a message that would be sent to the destination phone number |
received_at | string Represents the time the message was received |
cost | string Represent amount charged for the message received |
status | string Represents the status of the message received |
channel | string This is the route through which the message is received. It is either dnd, whatsapp, or generic |
Webhook Notification Data
{ "type":"inbound",
"id":"8248611476370959318",
"message_id":"3905204342778053556",
"receiver":"12022214836",
"sender":"2347069549231",
"message":"Great ",
"received_at":"2020-12-16T10:51:03.000000Z",
"cost":null,
"command":"Received",
"status":"Received",
"channel":null
}