Перейти к основному содержимому

conversation.transferred

Тело запроса POST на адрес подписки. Заголовки, подпись и повторы описаны в гайде «Вебхуки».

Схема conversation.transferred.v1 собрана из src/backend/contracts/integrations/webhooks/conversation.transferred.v1.json при сборке портала.

Поля​

Transferred​

ПолеТипОбязательноеОписание
conversationConversationда
event_idstring (uuid)да
from_queue_idstring (uuid) или nullнетПо умолчанию null.
occurred_atstring (date-time)да
queueQueueда
schema_versionintegerнетПо умолчанию 1.
type"conversation.transferred"даВид варианта: всегда conversation.transferred.

Conversation​

ПолеТипОбязательноеОписание
customer_idstring (uuid)да
idstring (uuid)да
identitiesмассив Identityда
numberstringда
queue_idstring (uuid) или nullнетПо умолчанию null.

Identity​

Подтверждённая личность клиента: по ней система находит его у себя.

ПолеТипОбязательноеОписание
external_idstringда
namespacestringда

Queue​

ПолеТипОбязательноеОписание
codestringда
idstring (uuid)да
namestringда

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"
}