Subscription request
curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "conversation_item/created",
"target_url": "URL"
}'
Payload
{
"entity_name": "conversation_item",
"event_type": "created",
"data": {
"uid": "elcq4ub0kzlzvrlz",
"conversation_uid": "6u6pohktybhlprzg",
"contact_uid": "n2nekjezdsv21v3x",
"business_uid": "k1pjwutt3mtlt5ft",
"staff_uid": "b7ojv3uv19t6173r",
"message_type": "text",
"direction": "business_to_client",
"text": "<div><strong>asdfsdf</strong></div>",
"message_category": null,
"message_entity_uid": null,
"created_at": "2023-05-23T03:17:04.000-04:00",
"external_message_id": null,
"channel_uid": "dujrmr24hpmerwkr"
}
}