CRM inbox

Получить переписку записи CRM

Changed on

Сведённая лента всех привязанных диалогов; карточка сделки и раздел коммуникаций читают одни и те же сообщения.

get/api/v1/crm/inbox/entities/{entity}/{id}/messages

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/crm/inbox/entities/{entity}/{id}/messages
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)

Query parameters

limitinteger

Сколько сообщений вернуть. Потолок держит запрос ленты; запрос сверх потолка зажимается до потолка, а не отклоняется

Response

Сообщения записи с названием канала

idstring uuid required
conversation_idstring uuid required
direction'inbound' | 'outbound' | 'system' required
provider_message_idstring
bodystring required
status'queued' | 'received' | 'sent' | 'delivered' | 'failed' required
sent_byinteger
created_atstring date-time required
attachment_countinteger

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

automationboolean

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

providerstring required
connection_namestring required

Changes

    • info

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

    • info

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