Chat

Получить окно сообщений

Changed on

Разрешён не более чем один cursor before_seq, after_seq или around_seq; items всегда по seq ASC. q ищет по тексту видимой истории и именам готовых проверенных вложений без изменения прочитанности; удалённые сообщения исключены. Все слова учитываются независимо от регистра, е/ё равнозначны. q нельзя совмещать с around_seq; поиск листается через before_seq или after_seq.

get/api/v1/chat/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

q, string

До 256 кодовых точек и 16 слов; буквальное сопоставление

before_seq, integer
after_seq, integer
around_seq, integer
limit, integer

Headers

X-Tenant, string required

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

Response

Окно сообщений

ChatMessagePage required
items, ChatMessage[] required
first_seq, integer
last_seq, integer

Example response

{
  "items": [
    {
      "attachments": [
        {
          "content_url": "/api/v1/chat/attachments/00000000-0000-0000-0000-000000000001/content"
        }
      ]
    }
  ]
}

Changes

    • info

      added the optional property field 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

    5 more changes in this revision