Chat

Получить доступные чаты

Changed on

Возвращает чаты, доступные текущему пользователю.

get/api/v1/chat/conversations

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

Query parameters

cursor, string

Opaque URL-safe cursor

limit, integer
space, 'chats' | 'tasks' | 'support'

List section: chats, task chats or support requests; omitted returns every conversation

archived, boolean

true returns the caller's personal archive instead of the list (SUP-336); without it archived conversations are left out of the list

Headers

X-Tenant, string required

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

Response

Страница чатов текущего участника

ChatConversationPage required
items, ChatConversation[] required
next_cursor, string

Example response

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

Changes

    • info

      added the new optional query request parameter archived

    • info

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

    • info

      added the optional property items/items/capabilities/canManageGreeting to the response with the status

    4 more changes in this revision