{
"items": [
{
"id": "507f1f77bcf86cd799439011",
"dialog_agents": [
{
"agent_id": "string",
"role": "primary",
"assigned_at": "2019-08-24T14:15:22.123Z",
"assigned_by": "auto",
"agent_info": {
"name": "string",
"avatar_url": "string",
"status": "active"
}
}
],
"channel_id": "550e8400-e29b-41d4-a716-446655440000",
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"auto_assign_disabled": false,
"status": "active",
"operator_response_status": "answered",
"operator_waiting_since": "2026-05-07T12:00:00Z",
"lead_response_status": "answered",
"lead_waiting_since": "2026-05-07T12:00:00Z",
"dialog_type": "private_chat",
"external_dialog_id": "vk_private_channel-uuid_12345",
"space_id": "507f1f77bcf86cd799439012",
"space_ids": [
"507f1f77bcf86cd799439013",
"507f1f77bcf86cd799439012"
],
"tags": [
"возврат",
"товар"
],
"priority": "low",
"traffic_source": "widget",
"traffic_medium": "organic",
"device_type": "mobile",
"utm_source": "vk",
"utm_medium": "cpc",
"utm_campaign": "promo2025",
"utm_term": "возврат товара",
"utm_content": "banner_blue",
"duration_seconds": 300,
"first_response_time_seconds": 45,
"first_lead_message_at": "2026-05-07T12:00:00Z",
"first_operator_message_at": "2026-05-07T12:05:00Z",
"last_lead_message_at": "2026-05-07T12:30:00Z",
"last_operator_message_at": "2026-05-07T12:35:00Z",
"started_at": "2025-12-25T10:00:00Z",
"completed_at": "2025-12-25T12:30:00Z",
"last_event_at": "2025-12-25T12:30:00Z",
"created_at": "2025-12-25T10:00:00Z",
"updated_at": "2025-12-25T12:30:00Z",
"is_test": false,
"total_events": 42,
"messages_count": 30,
"operator_unread_count": 5,
"lead_unread_count": 3,
"primary_lead_id": "507f1f77bcf86cd799439014",
"display_info": {
"name": "Иван Петров",
"avatar_url": "https://vk.com/images/camera_200.png",
"source_type": "lead",
"platform_type": "vk"
},
"summary": "Клиент уточнил условия доставки и подтвердил заказ.",
"summary_generated_at": "2025-12-25T12:30:00Z",
"reply_target": {
"channel_type": "tg",
"kind": "telegram_chat",
"data_tg": {
"chat_id": "-1001234567890",
"linked_chat_id": "-1001234567000",
"chat_type": "private",
"chat_title": "Поддержка клиентов",
"chat_username": "support_chat",
"direct_messages_topic_id": 123
}
},
"first_message": {
"content": "Здравствуйте! Подскажите по возврату товара.",
"lead_id": "507f1f77bcf86cd799439011",
"sender": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "lead",
"external_id": "123456789",
"profile": {
"first_name": "Иван",
"last_name": "Петров",
"username": "ivan_petrov",
"avatar_url": "https://example.com/avatar.jpg",
"platform_type": "vk",
"operator_notes": "Просил связаться после 18:00",
"space_kind": "discord_guild",
"space_type": "community",
"source_url": "https://t.me/example"
}
},
"timestamp": "2025-12-25T10:00:00Z",
"action_type": "message_created",
"attachments": [
{
"type": "photo",
"count": 2
},
{
"type": "document",
"count": 1
}
]
},
"last_message": {
"content": "Привет! Как дела?",
"lead_id": "507f1f77bcf86cd799439011",
"sender": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "lead",
"external_id": "123456789",
"profile": {
"first_name": "Иван",
"last_name": "Петров",
"username": "ivan_petrov",
"avatar_url": "https://example.com/avatar.jpg",
"platform_type": "vk",
"operator_notes": "Просил связаться после 18:00",
"space_kind": "discord_guild",
"space_type": "community",
"source_url": "https://t.me/example"
}
},
"timestamp": "2026-01-09T16:25:49.680Z",
"action_type": "message_created",
"attachments": [
{
"type": "photo",
"count": 2
},
{
"type": "document",
"count": 1
}
]
},
"service_actor": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "lead",
"external_id": "123456789",
"profile": {
"first_name": "Иван",
"last_name": "Петров",
"username": "ivan_petrov",
"avatar_url": "https://example.com/avatar.jpg",
"platform_type": "vk",
"operator_notes": "Просил связаться после 18:00",
"space_kind": "discord_guild",
"space_type": "community",
"source_url": "https://t.me/example"
}
},
"operator_assignment": {
"user_id": "550e8400-e29b-41d4-a716-446655440000",
"assigned_at": "2026-05-07T12:00:00Z",
"assigned_by_user_id": "550e8400-e29b-41d4-a716-446655440000",
"user_info": {
"first_name": "Иван",
"last_name": "Петров",
"avatar_url": "https://example.com/avatar.jpg"
}
},
"is_sound_muted": false,
"current_typing": [
{
"sender": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "lead",
"first_name": "Иван",
"last_name": "Петров",
"username": "ivan_petrov",
"avatar_url": "https://example.com/avatar.jpg"
},
"platform_type": "web",
"started_at": "2026-01-28T10:00:00.000Z",
"streaming": true
}
],
"search": {
"score": 12.5,
"total_matches": 3,
"top_match": {
"event_id": "507f1f77bcf86cd799439011",
"content": "Привет, хочу <em>заказать</em> пиццу",
"timestamp": "2024-01-01T12:00:00.000Z",
"sender_type": "lead"
}
}
}
],
"total": 145,
"pagination_type": "offset",
"query_time_ms": 25,
"query": "пицца",
"from": 0,
"size": 20,
"has_more": true,
"next_cursor": "2025-01-10T14:30:00.123Z:uuid"
}