Message business sent message subscribe example:
curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "message/business_sent_message",
"target_url": "URL"
}'
Message business_sent_message response example:
{
"entity_name": "message",
"event_type": "business_sent_message",
"data": {
"business_id": "s5ek7tfgp068i2st",
"staff_id": "e6j4i1ofy2pf0dmg",
"conversation_id": "pto6yng4e908c8g0",
"message_id": "fjo0q77g2a4hmotc",
"message": "Thank you for your message",
"client_id": "54gjvtadfbxiom7y",
"created_at": "2019-10-29T09:36:59.105+02:00"
}
}