Overview

Диалоги в API: чтение и отправка

GET/v2/accounts/{account_id}/dialogs

Список диалогов аккаунта.

Authorization
Authorizationstring

Sent as the Authorization header. Your key is used only by your browser for this request — it is never sent to Docsbook or stored.

Path
account_idstringrequired

UUID аккаунта

GET/v2/accounts/{account_id}/dialogs/{peer_user_id}/messages

История переписки с конкретным собеседником.

Authorization
Authorizationstring

Sent as the Authorization header. Your key is used only by your browser for this request — it is never sent to Docsbook or stored.

Path
account_idstringrequired

UUID аккаунта

peer_user_idintegerrequired

Числовой идентификатор собеседника

POST/v2/accounts/{account_id}/dialogs/{peer_user_id}/messages

Отправить сообщение собеседнику от имени аккаунта. Тело запроса — JSON.

Authorization
Authorizationstring

Sent as the Authorization header. Your key is used only by your browser for this request — it is never sent to Docsbook or stored.

Path
account_idstringrequired

UUID аккаунта

peer_user_idintegerrequired

Числовой идентификатор собеседника

Непрочитанные диалоги#

Отдельная операция для непрочитанных опубликована только в версии v1: GET /v1/accounts/{account_id}/dialogs/unread. Полный перечень — Справочник v1.

Аналитика по переписке#

Диалоги — источник для метрик на вашей стороне: конверсия этапа, доля отказов, качество конкретного сценария. NN Agent отдаёт переписку, считать по ней можно что угодно.

Дальше#

Updated

Диалоги в API: чтение и отправка — NN Agent