CRM inbox

Отправить сообщение в диалог

Changed on

Ответ 202 - сообщение принято в очередь доставки; окончательный статус приходит через переписку диалога.

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

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/crm/inbox/conversations/{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)

Request body

bodystring
upload_idsUUID[]

Идентификаторы заранее загруженных файлов: id из crmFinishInboxUploadSession (сессия загрузки) или из crmUploadInboxOutboundFile (форма)

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

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

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status