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

conversation.assigned

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

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

Поля​

Assigned​

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

Conversation​

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

Identity​

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

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

Operator​

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

JSON Schema​

{
"$defs": {
"Assigned": {
"properties": {
"conversation": {
"$ref": "#/$defs/Conversation"
},
"event_id": {
"format": "uuid",
"type": "string"
},
"occurred_at": {
"format": "date-time",
"type": "string"
},
"operator": {
"$ref": "#/$defs/Operator"
},
"schema_version": {
"default": 1,
"type": "integer"
},
"type": {
"description": "Вид варианта: всегда `conversation.assigned`.",
"enum": [
"conversation.assigned"
]
}
},
"required": [
"type",
"event_id",
"occurred_at",
"conversation",
"operator"
],
"title": "Assigned",
"type": "object"
},
"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"
},
"Operator": {
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"title": "Operator",
"type": "object"
}
},
"$ref": "#/$defs/Assigned"
}