Skip to main content

Message Created

This event will be sent whenever a message gets created, for example when receiving or sending a message from/to a customer.

Event Name

message_created

Payload Fields

FieldTypeDescription
tostringThe channel-specific identifier of the message receiver
fromstringThe channel-specific identifier of the message sender
textstringThe text of the message
attachmentsstring[]The attachments of the message
statusstringThe status of the message. Can be only be received or sent
channelstringChannel identifier (e.g. whatsapp)
contactContactThe contact associated to the message
createdAtstringDate of contact creation (ISO 8601 formatted)
metadataObjectMetadata attached to the message (if present)

Example Payload

payload.json
{
"event": "message_created",
"payload": {
"to": "331122334455",
"from": "335544332211",
"text": "Hello",
"status": "received",
"channel": "whatsapp",
"contact": {
"href": "https://dash.callbell.eu/contacts/eb2b914a977e4ab896e7b886698b3eac",
"conversationHref": "https://dash.callbell.eu/chat/f3670b13446b412796238b1cd78899f9",
"name": "John Doe",
"tags": ["Lead"],
"uuid": "eb2b914a977e4ab896e7b886698b3eac",
"source": "whatsapp",
"avatarUrl": null,
"createdAt": "2022-10-12T15:57:16Z",
"phoneNumber": "331122334455"
},
"createdAt": "2022-10-18T12:06:29.000+02:00"
}
}