Response
Return a 200 status to indicate that the event was properly received
{
"type": "message_created",
"payload": {
"message": {
"id": 123,
"conversation_id": 123,
"date": "2023-01-31 16:22:17.327878+00:00",
"content_type": "Text",
"sender_type": "User",
"sender_label": "Jane Doe",
"status": "Sending",
"is_deleted": false,
"content": "<string>",
"user_id": "<string>",
"custom_channel": null
},
"conversation": {
"id": 123,
"consumer_img": "https://www.example.com/profile-picture.jpg",
"consumer_name": "John Doe",
"business": {
"id": 123
},
"messaging_partner": "Facebook",
"custom_channel": null
},
"org_id": 123
}
}
This event is triggered when a conversation has a new message.
The event payload contains the event type, the content of the message created, and additional information about the conversation.
{
"type": "message_created",
"payload": {
"message": {
"id": 123,
"conversation_id": 123,
"date": "2023-01-31 16:22:17.327878+00:00",
"content_type": "Text",
"sender_type": "User",
"sender_label": "Jane Doe",
"status": "Sending",
"is_deleted": false,
"content": "<string>",
"user_id": "<string>",
"custom_channel": null
},
"conversation": {
"id": 123,
"consumer_img": "https://www.example.com/profile-picture.jpg",
"consumer_name": "John Doe",
"business": {
"id": 123
},
"messaging_partner": "Facebook",
"custom_channel": null
},
"org_id": 123
}
}
Return a 200 status to indicate that the event was properly received
Was this page helpful?