This endpoint must be implemented on YOUR server (e.g., https://yourdomain.com/webhooks/on-delivered). Treble will call this webhook when a message is delivered to the user. You must configure the URL of this webhook in the Treble admin panel.
Information of the delivery event
Event that is triggered when a message is delivered to the user
Country code of the user
User's phone number without the country code
ID of the user's session
ID of the conversation
Date and time when the message was sent
Text of the sent message
Date and time when the message was delivered to the user
User session keys collected during the conversation or provided during the deployment
Response to update or add information to the session
JSON object with the new information that will be replaced or added to the session for future use. The service must respond in less than 10 seconds.