This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when the business sends a message to a visitor, contact, or member.
Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.crm.inbox.v2.message
.
Event name. Expected message_sent_to_participant
.
ID of the entity associated with the event.
Event timestamp.
Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
If present, indicates the action that triggered the event.
Event information.
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "wix.crm.inbox.v2.message_message-sent-to-participant",
"instanceId": "<app-instance-id>",
"data": "<stringified-JSON>",
// The identity field is sent as a stringified JSON
"identity": {
"identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
"anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR
"memberId": "<memberId>", // in case of MEMBER
"wixUserId": "<wixUserId>", // in case of WIX_USER
"appId": "<appId>" // in case of APP
}
}
}
{
"id": "3bd83c4f-0456-4180-bf06-f8103e88362e",
"entityFqdn": "wix.crm.inbox.v2.message",
"slug": "message_sent_to_participant",
"entityId": "1640771623903770",
"actionEvent": {
"body": {
"conversationId": "5f65164f-b373-3cb9-be2e-f1fdc00c86a9",
"message": {
"targetChannels": [],
"direction": "BUSINESS_TO_PARTICIPANT",
"id": "1640771623903770",
"sequence": "1640771623903770",
"content": {
"previewText": "Thanks for booking your spa day with us!",
"basic": {
"items": [
{
"image": {
"url": "https://static.wixstatic.com/media/f93e3d633e79921f14330f1911fc1139.jpg/v1/fill/w_1200,h_798,al_c,q_85,usm_0.66_1.00_0.01/f93e3d633e79921f14330f1911fc1139.webp",
"width": 1200.0,
"height": 798.0
}
},
{
"text": "Thanks for booking your spa day with us!"
},
{
"text": "We've emailed your invoice. You'll find everything you need to know there."
}
]
}
},
"sender": {
"wixUserId": "72751428-2743-4bda-acf5-4218a4279cd3"
},
"appId": "a0c38670-6845-41e0-8f41-85a6054ccd98",
"visibility": "BUSINESS_AND_PARTICIPANT",
"sourceChannel": "UNKNOWN_CHANNEL_TYPE",
"badges": [],
"createdDate": "2021-12-29T09:53:43.903Z"
}
}
},
"eventTime": "2021-12-29T09:53:44.025614Z",
"triggeredByAnonymizeRequest": false
}