conversation.ended
The conversation ended webhook is triggered when conversation ends.
Webhook payload
Here is an example of the POST request JSON payload:
Payload fields
event_type
Always "conversation.ended"
created_at
ISO 8601 timestamp of when the event was created
data.conversation
The full conversation object. See the Get Conversation endpoint for all fields.
data.call_info
Phone call metadata (present for telephony conversations, null for web). Contains from_phone_number, to_phone_number, and optionally twilio_call_sid.
Example usage
Here’s an example of how to handle the webhook: