Following feedback we are updating our webhooks for the events messageStatusUpdate, inboundMessage and messageSend. The messageStatusUpdate and inboundMessage will include additional fields and the messageSend will now be sent on a new type = "messageSend".
communicationActionId: this is a unique identifier for each message.
body: this is the message content.
The Message Send webhook is also changing, this will now come as a post called messageSend rather than as one of the messageStatusUpdate posts.
Message status update - if you are subscribed to the deliveryReport event you will now receive the value communicationActionID, the messageSend events will no longer come on this webhook.
{
"type": "messageStatusUpdate",
"conversationId": "97847",
"communicationActionId": "220860",
"outboundChannelAddress": "447717472695",
"inboundChannelAddress": "WhatsApp QA Test",
"customerUID": "",
"dateCreated": "2021-01-28 12:22:15.397",
"statusCode": "2"
}
Inbound Message update - if you are subscribed to the inboundMessage event you will now receive the value communicationActionID.
Inbound Message
{
"type": "inboundMessage",
"conversationId": "97847",
"communicationActionId": "220859",
"outboundChannelAddress": "447717472695",
"inboundChannelAddress": "WhatsApp QA Test",
"customerUID": "",
"body": "No I don't",
"dateCreated": "2021-01-28 12:21:28.373"
}
Message Send update - if you are subscribed to the messageSend event you will now receive a webhook post with type = messageSend. This will contain the comunicationActionId and the body.
{
"type": "messageSend",
"conversationId": "97847",
"communicationActionId": "220860",
"outboundChannelAddress": "447717472695",
"inboundChannelAddress": "WhatsApp QA Test",
"customerUID": "",
"body": "yes",
"dateCreated": "2021-01-28 12:22:08.377",
"statusCode": "1"
}
This change will be deployed 3rd February 2021.