Skip to main content
WEBHOOK
conversation.userLeft
{
  "eventId": "evt_01234567890abcdef",
  "eventType": "conversation.userLeft",
  "payload": {
    "id": "conv_1234567890abcdef",
    "phoneId": "phone_1234567890abcdef",
    "agentId": "agent_1234567890abcdef",
    "workspaceId": "ws_1234567890abcdef",
    "wsUrl": "wss://api.example.com/ws/conv_1234567890abcdef",
    "llmUrl": "https://api.example.com/llm/conv_1234567890abcdef",
    "callStartTime": "2023-01-01T12:00:00.000Z",
    "callEndTime": null,
    "userJoinTime": "2023-01-01T12:00:00.000Z",
    "userLeaveTime": "2023-01-01T12:00:00.000Z",
    "customerId": "cust_1234567890abcdef",
    "customer": {
      "name": "John Doe",
      "id": "cust_1234567890abcdef",
      "createdAt": "2023-01-01T12:00:00.000Z",
      "updatedAt": "2023-01-01T12:00:00.000Z",
      "workspaceId": "ws_1234567890abcdef",
      "email": "john.doe@example.com",
      "phoneNumber": "+1234567890",
      "identifier": "john.doe",
      "priority": 1,
      "sourceFile": null,
      "isDoNotDisturbEnabled": false,
      "metadata": {
        "custom_field": "value"
      }
    },
    "toPhoneNumber": "+1234567890",
    "fromPhoneNumber": "+0987654321",
    "conversationStatus": "active",
    "telephonyType": "inbound",
    "telephonyStatus": "active",
    "endReason": null,
    "recordingStatus": "in_progress",
    "postCallNotes": null,
    "postCallCategory1": null,
    "postCallCategory2": null,
    "postCallCategory3": null,
    "postCallMetadata": null,
    "conversationType": "telephony",
    "dynamicVariables": "{\"session_id\": \"sess_abc123\", \"queue_time\": 45}",
    "summary": "",
    "campaignId": null,
    "campaignRunId": null,
    "createdAt": "2023-01-01T12:00:00.000Z",
    "updatedAt": "2023-01-01T12:00:00.000Z"
  }
}

Body

application/json
eventId
string<uuid>
required
eventType
string
required
Allowed value: "conversation.userLeft"
payload
object
required

Response

200

Webhook received successfully