> This page is for version Generative (default).
> For other versions, use one of these documentation indexes:
> - Generative (default): https://developers.ada.cx/generative/llms.txt
> - Scripted: https://developers.ada.cx/scripted/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.ada.cx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.ada.cx/_mcp/server.

# Webhook: Conversation ended

POST 

A webhook sent when a conversation ends

Reference: https://developers.ada.cx/reference/conversations/conversation-ended-webhook

## Request

### Payload

- `type` (string, optional) — The webhook event type
- `timestamp` (string, optional) — The timestamp for when the event was generated, uses millisecond precision to help with event ordering
- `data` (ConversationEndedWebhookPayloadData, optional) — The webhook event data

## Types

### ConversationEndedWebhookPayloadData

The webhook event data

- `conversation_id` (string, optional) — The ID of the conversation that was ended
- `channel_id` (string, optional) — The ID of the channel
- `created_at` (string, optional) — The date and time the conversation was created
- `updated_at` (string, optional) — The date and time the conversation was last updated
- `ended_by` (ConversationEndedWebhookPayloadDataEndedBy, optional)
- `metadata` (ConversationEndedWebhookPayloadDataMetadata, optional) — A dictionary of key, value pairs assigned to the conversation - `metadata` keys may only be of type: `string` - `metadata` values may only be one of type: `string`, `boolean`, or `integer`

### ConversationEndedWebhookPayloadDataEndedBy

- `id` (string, optional) — The ID of the user that ended the conversation
- `role` (enum, optional) — The role that ended the conversation
  - Allowed values: `end_user`, `system`

### ConversationEndedWebhookPayloadDataMetadata

A dictionary of key, value pairs assigned to the conversation - `metadata` keys may only be of type: `string` - `metadata` values may only be one of type: `string`, `boolean`, or `integer`