conversation.transferred
Тело запроса POST на адрес подписки. Заголовки, подпись и повторы описаны в гайде «Вебхуки».
Схема conversation.transferred.v1 собрана из src/backend/contracts/integrations/webhooks/conversation.transferred.v1.json при сборке портала.
Поля
Transferred
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
conversation | Conversation | да | |
event_id | string (uuid) | да | |
from_queue_id | string (uuid) или null | нет | По умолчанию null. |
occurred_at | string (date-time) | да | |
queue | Queue | да | |
schema_version | integer | нет | По умолчанию 1. |
type | "conversation.transferred" | да | Вид варианта: всегда conversation.transferred. |
Conversation
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
customer_id | string (uuid) | да | |
id | string (uuid) | да | |
identities | массив Identity | да | |
number | string | да | |
queue_id | string (uuid) или null | нет | По умолчанию null. |
Identity
Подтверждённая личность клиента: по ней система находит его у себя.
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
external_id | string | да | |
namespace | string | да |
Queue
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
code | string | да | |
id | string (uuid) | да | |
name | string | да |
JSON Schema
{
"$defs": {
"Conversation": {
"properties": {
"customer_id": {
"format": "uuid",
"type": "string"
},
"id": {
"format": "uuid",
"type": "string"
},
"identities": {
"items": {
"$ref": "#/$defs/Identity"
},
"type": "array"
},
"number": {
"type": "string"
},
"queue_id": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"id",
"number",
"customer_id",
"identities"
],
"title": "Conversation",
"type": "object"
},
"Identity": {
"description": "Подтверждённая личность клиента: по ней система находит его у себя.",
"properties": {
"external_id": {
"type": "string"
},
"namespace": {
"type": "string"
}
},
"required": [
"namespace",
"external_id"
],
"title": "Identity",
"type": "object"
},
"Queue": {
"properties": {
"code": {
"type": "string"
},
"id": {
"format": "uuid",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"code",
"name"
],
"title": "Queue",
"type": "object"
},
"Transferred": {
"properties": {
"conversation": {
"$ref": "#/$defs/Conversation"
},
"event_id": {
"format": "uuid",
"type": "string"
},
"from_queue_id": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"occurred_at": {
"format": "date-time",
"type": "string"
},
"queue": {
"$ref": "#/$defs/Queue"
},
"schema_version": {
"default": 1,
"type": "integer"
},
"type": {
"description": "Вид варианта: всегда `conversation.transferred`.",
"enum": [
"conversation.transferred"
]
}
},
"required": [
"type",
"event_id",
"occurred_at",
"conversation",
"queue"
],
"title": "Transferred",
"type": "object"
}
},
"$ref": "#/$defs/Transferred"
}