CRM inbox

Получить переписку диалога

Changed on

Возвращает сообщения указанного диалога.

get/api/v1/crm/inbox/conversations/{id}/messages

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

id, string uuid required

Query parameters

limit, integer

Размер страницы

offset, integer

Смещение страницы

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Response

Сообщения от новых к старым

CRMInboxMessage[] required
id, string uuid required
conversation_id, string uuid required
direction, 'inbound' | 'outbound' | 'system' required
provider_message_id, string
body, string required
status, 'queued' | 'received' | 'sent' | 'delivered' | 'failed' required
sent_by, integer
created_at, string date-time required
attachment_count, integer

Сколько файлов у сообщения; список — GET /api/v1/crm/inbox/messages/{id}/attachments

automation, boolean

Ответ поставил робот — правило автоматизации; в переписке он подписан «робот»

attachments, CRMInboxMessageAttachment[]

Файлы сообщения: готовые вложения и файлы клиента, которые ещё скачиваются из канала

call, CRMInboxMessageCall

Сообщение-звонок телефонии: итог, длительность и кто ответил; запись разговора — во вложениях сообщения

Changes

    • info

      added the optional property items/call to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    6 more changes in this revision