Bitrix24 Chats API

The Chats API from Bitrix24 — 67 operation(s) for chats.

Operations 67

POST /im.chat.add Create Chat im.chat.add #
POST /im.chat.get Get Chat ID im.chat.get #
POST /im.chat.leave Leave Chat im.chat.leave #
POST /im.chat.mute Disable Notifications from Chat im.chat.mute #
POST /im.chat.setOwner Change Chat Owner im.chat.setOwner #
POST /im.chat.updateAvatar Update Chat Avatar im.chat.updateAvatar #
POST /im.chat.updateColor Change Chat Color im.chat.updateColor #
POST /im.chat.updateTitle Update Chat Title im.chat.updateTitle #
POST /im.chat.user.add Invite Participants to Chat im.chat.user.add #
POST /im.chat.user.delete Exclude Participants from Chat im.chat.user.delete #
POST /im.chat.user.list Get Chat Participant IDs im.chat.user.list #
POST /im.counters.get Get Counters im.counters.get #
POST /im.department.colleagues.list Get the List of Colleagues for the Current User im.department.colleagues.list #
POST /im.department.employees.get Get a List of Employees from Departments im.department.employees.get #
POST /im.department.get Get Information About the Department im.department.get #
POST /im.department.managers.get Get a List of Department Managers im.department.managers.get #
POST /im.dialog.get Get Chat Data im.dialog.get #
POST /im.dialog.messages.get Get the List of Recent Messages im.dialog.messages.get #
POST /im.dialog.read Set the "read" flag for messages im.dialog.read #
POST /im.dialog.read.all Set the "read" flag for all chats im.dialog.read.all #
POST /im.dialog.unread Set the "unread" flag for messages im.dialog.unread #
POST /im.dialog.users.list Get the List of Participants im.dialog.users.list #
POST /im.dialog.writing Send "User is typing" indicator im.dialog.writing #
POST /im.disk.file.commit Add File to Chat im.disk.file.commit #
POST /im.disk.file.delete Delete File from Chat Folder im.disk.file.delete #
POST /im.disk.file.save Save File to Your Drive im.disk.file.save #
POST /im.disk.folder.get Get Chat File Storage Folder im.disk.folder.get #
POST /im.message.add Send Message im.message.add #
POST /im.message.command Execute the chat-bot command im.message.command #
POST /im.message.delete Delete Message im.message.delete #
POST /im.message.like Change Status to "Like" im.message.like #
POST /im.message.share Create an Object Based on the Message im.message.share #
POST /im.message.update Update Message im.message.update #
POST /im.notify Send Notification im.notify #
POST /im.notify.answer Responding to Notifications with Quick Response im.notify.answer #
POST /im.notify.confirm Interacting with Notification Buttons im.notify.confirm #
POST /im.notify.delete Delete Notification im.notify.delete #
POST /im.notify.get Get Notifications im.notify.get #
POST /im.notify.personal.add Send Personal Notification im.notify.personal.add #
POST /im.notify.read Read or Mark Notification as Unread im.notify.read #
POST /im.notify.read.all Read All Notifications im.notify.read.all #
POST /im.notify.read.list Read the list of notifications im.notify.read.list #
POST /im.notify.schema.get Get Notification Type Schema im.notify.schema.get #
POST /im.notify.system.add Send System Notification im.notify.system.add #
POST /im.recent Pin a Chat at the Top of the im.recent List #
POST /im.recent.get Get a Shortened List of Recent Chats im.recent.get #
POST /im.recent.hide Remove Chat from the Recent List im.recent.hide #
POST /im.recent.list Get the List of Chats im.recent.list #
POST /im.recent.unread Set or Remove the "Read" Flag for the Chat im.recent.unread #
POST /im.revision.get Get API Revisions im.revision.get #
POST /im.search.chat.list Find Chats im.search.chat.list #
POST /im.search.department.list Find Departments im.search.department.list #
POST /im.search.last.add Add Entry to Search History im.search.last.add #
POST /im.search.last.delete Delete Record from Search History im.search.last.delete #
POST /im.search.last.get Get Search History im.search.last.get #
POST /im.search.user.list Find Users im.search.user.list #
POST /im.user.get Get User Data im.user.get #
POST /im.user.list.get Get User Data with im.user.list.get #
POST /im.user.status.get Get User Status im.user.status.get #
POST /im.user.status.idle.end Disable Automatic Status "Away" im.user.status.idle.end #
POST /im.user.status.idle.start Enable Automatic Status "Away" im.user.status.idle.start #
POST /im.user.status.set Set User Status im.user.status.set #
POST /imbot.app.register Register a Chat Application imbot.app.register #
POST /imbot.app.unregister Unregister Chat Application imbot.app.unregister #
POST /imbot.app.update Update Application Data in Chat imbot.app.update #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bitrix24-chats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bitrix24-chats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bitrix24 REST BIconnector Chats API
  version: 1.0.0
  description: 'Bitrix24 REST API provides access to CRM, tasks, drive, chats, telephony, e-commerce, automation, and other modules. Documentation: https://apidocs.bitrix24.com'
  contact:
    name: Bitrix24 Developer Support
    url: https://apidocs.bitrix24.com/support.html
  license:
    name: MIT
    url: https://github.com/bitrix-tools/b24-rest-docs/blob/main/LICENSE
  x-logo:
    url: https://apidocs.bitrix24.com/_images/bitrix24logo.svg
servers:
- url: https://{portal}.bitrix24.com/rest
  description: Your Bitrix24 portal (cloud)
  variables:
    portal:
      default: your-portal
      description: Subdomain of your Bitrix24 portal
- url: https://{host}/rest
  description: On-Premise Bitrix24 installation
  variables:
    host:
      default: your-bitrix24.example.com
      description: Host of your on-premise installation
security:
- AccessToken: []
tags:
- name: Chats
paths:
  /im.chat.add:
    post:
      summary: Create Chat im.chat.add
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.add` creates a new chat.
      operationId: im_chat_add
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/im-chat-add.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                USERS:
                  type: array
                  items: {}
                  description: '| An array of user IDs to be added to the chat.'
                TYPE:
                  type: string
                  description: '| Type of chat:'
                TITLE:
                  type: string
                  description: '| Title of the chat.'
                DESCRIPTION:
                  type: string
                  description: '| Description of the chat ||'
                COLOR:
                  type: string
                  description: '| Color of the chat. Possible values:'
                MESSAGE:
                  type: string
                  description: '| The first message in the chat ||'
                AVATAR:
                  type: string
                  description: '| Avatar of the chat in base64 string format.'
                ENTITY_TYPE:
                  type: string
                  description: '| Type of object to link the chat with external context.'
                ENTITY_ID:
                  type: string
                  description: '| Identifier of the object within `ENTITY_TYPE`.'
                COPILOT_MAIN_ROLE:
                  type: string
                  description: '| Code of the main role for BitrixGPT.'
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                USERS:
                  type: array
                  items: {}
                  description: '| An array of user IDs to be added to the chat.'
                TYPE:
                  type: string
                  description: '| Type of chat:'
                TITLE:
                  type: string
                  description: '| Title of the chat.'
                DESCRIPTION:
                  type: string
                  description: '| Description of the chat ||'
                COLOR:
                  type: string
                  description: '| Color of the chat. Possible values:'
                MESSAGE:
                  type: string
                  description: '| The first message in the chat ||'
                AVATAR:
                  type: string
                  description: '| Avatar of the chat in base64 string format.'
                ENTITY_TYPE:
                  type: string
                  description: '| Type of object to link the chat with external context.'
                ENTITY_ID:
                  type: string
                  description: '| Identifier of the object within `ENTITY_TYPE`.'
                COPILOT_MAIN_ROLE:
                  type: string
                  description: '| Code of the main role for BitrixGPT.'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.get:
    post:
      summary: Get Chat ID im.chat.get
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.get` retrieves the chat ID.
      operationId: im_chat_get
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/im-chat-get.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ENTITY_TYPE:
                  type: string
                  description: '| The type of object for linking the chat to an external context. Passed as a string.'
                ENTITY_ID:
                  type: string
                  description: '| Identifier of the object within `ENTITY_TYPE`.'
              required:
              - ENTITY_TYPE
              - ENTITY_ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                ENTITY_TYPE:
                  type: string
                  description: '| The type of object for linking the chat to an external context. Passed as a string.'
                ENTITY_ID:
                  type: string
                  description: '| Identifier of the object within `ENTITY_TYPE`.'
              required:
              - ENTITY_TYPE
              - ENTITY_ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.leave:
    post:
      summary: Leave Chat im.chat.leave
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.leave` removes the current user from the chat.
      operationId: im_chat_leave
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-users/im-chat-leave.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
              required:
              - CHAT_ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
              required:
              - CHAT_ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.mute:
    post:
      summary: Disable Notifications from Chat im.chat.mute
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.mute` disables or enables notifications in the specified chat.
      operationId: im_chat_mute
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/special-operations/im-chat-mute.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| The identifier of the chat. You can obtain the identifier using the im.chat.get method ||'
                DIALOG_ID:
                  type: string
                  description: '| The chat identifier in the format:'
                MUTE:
                  type: string
                  description: '| Notification control:'
              required:
              - CHAT_ID
              - DIALOG_ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| The identifier of the chat. You can obtain the identifier using the im.chat.get method ||'
                DIALOG_ID:
                  type: string
                  description: '| The chat identifier in the format:'
                MUTE:
                  type: string
                  description: '| Notification control:'
              required:
              - CHAT_ID
              - DIALOG_ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.setOwner:
    post:
      summary: Change Chat Owner im.chat.setOwner
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.setOwner` changes the owner of the chat.
      operationId: im_chat_setOwner
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-update/im-chat-set-owner.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                USER_ID:
                  type: integer
                  description: '| Identifier of the new chat owner.'
              required:
              - CHAT_ID
              - USER_ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                USER_ID:
                  type: integer
                  description: '| Identifier of the new chat owner.'
              required:
              - CHAT_ID
              - USER_ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.updateAvatar:
    post:
      summary: Update Chat Avatar im.chat.updateAvatar
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.updateAvatar` updates the chat avatar.
      operationId: im_chat_updateAvatar
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-update/im-chat-update-avatar.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                AVATAR:
                  type: string
                  description: '| Image in Base64 format.'
              required:
              - CHAT_ID
              - AVATAR
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                AVATAR:
                  type: string
                  description: '| Image in Base64 format.'
              required:
              - CHAT_ID
              - AVATAR
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.updateColor:
    post:
      summary: Change Chat Color im.chat.updateColor
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.updateColor` updates the chat color for the mobile application.
      operationId: im_chat_updateColor
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-update/im-chat-update-color.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                COLOR:
                  type: string
                  description: '| Chat color for the mobile application. Possible values:'
              required:
              - CHAT_ID
              - COLOR
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                COLOR:
                  type: string
                  description: '| Chat color for the mobile application. Possible values:'
              required:
              - CHAT_ID
              - COLOR
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.updateTitle:
    post:
      summary: Update Chat Title im.chat.updateTitle
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.updateTitle` updates the chat title.
      operationId: im_chat_updateTitle
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-update/im-chat-update-title.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Chat identifier.'
                TITLE:
                  type: string
                  description: '| Chat title.'
              required:
              - CHAT_ID
              - TITLE
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Chat identifier.'
                TITLE:
                  type: string
                  description: '| Chat title.'
              required:
              - CHAT_ID
              - TITLE
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.user.add:
    post:
      summary: Invite Participants to Chat im.chat.user.add
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.user.add` adds users to a chat.
      operationId: im_chat_user_add
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-users/im-chat-user-add.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                USERS:
                  type: array
                  items: {}
                  description: '| Array of user identifiers to be added to the chat.'
                HIDE_HISTORY:
                  type: string
                  description: '| Hide chat history for added users:'
              required:
              - CHAT_ID
              - USERS
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                USERS:
                  type: array
                  items: {}
                  description: '| Array of user identifiers to be added to the chat.'
                HIDE_HISTORY:
                  type: string
                  description: '| Hide chat history for added users:'
              required:
              - CHAT_ID
              - USERS
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.user.delete:
    post:
      summary: Exclude Participants from Chat im.chat.user.delete
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.user.delete` removes a user from the chat.
      operationId: im_chat_user_delete
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-users/im-chat-user-delete.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                USER_ID:
                  type: integer
                  description: '| Identifier of the user to be excluded from the chat.'
              required:
              - CHAT_ID
              - USER_ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
                USER_ID:
                  type: integer
                  description: '| Identifier of the user to be excluded from the chat.'
              required:
              - CHAT_ID
              - USER_ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.chat.user.list:
    post:
      summary: Get Chat Participant IDs im.chat.user.list
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.chat.user.list` returns a list of chat participant IDs.
      operationId: im_chat_user_list
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/chat-users/im-chat-user-list.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
              required:
              - CHAT_ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CHAT_ID:
                  type: integer
                  description: '| Identifier of the chat.'
              required:
              - CHAT_ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.counters.get:
    post:
      summary: Get Counters im.counters.get
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.counters.get` retrieves the counters for unread messages and notifications for the current user.
      operationId: im_counters_get
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/im-counters-get.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
          application/x-www-form-urlencoded:
            schema:
              type: object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.department.colleagues.list:
    post:
      summary: Get the List of Colleagues for the Current User im.department.colleagues.list
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.department.colleagues.list` retrieves the list of colleagues for the current user. For a manager, the method will return a list of subordinates and all supervisors.
      operationId: im_department_colleagues_list
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/departments/im-department-colleagues-list.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                USER_DATA:
                  type: string
                  description: '| Return detailed user data.'
                OFFSET:
                  type: integer
                  description: '| Offset for user selection ||'
                LIMIT:
                  type: integer
                  description: '| Number of items in the selection. Default is `10`. Maximum value is `50` ||'
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                USER_DATA:
                  type: string
                  description: '| Return detailed user data.'
                OFFSET:
                  type: integer
                  description: '| Offset for user selection ||'
                LIMIT:
                  type: integer
                  description: '| Number of items in the selection. Default is `10`. Maximum value is `50` ||'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.department.employees.get:
    post:
      summary: Get a List of Employees from Departments im.department.employees.get
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.department.employees.get` retrieves a list of employees from the specified departments.
      operationId: im_department_employees_get
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/departments/im-department-employees-get.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ID:
                  type: array
                  items: {}
                  description: '| An array of department IDs. You can pass a string with a JSON array of IDs.'
                USER_DATA:
                  type: string
                  description: '| Return detailed user data.'
              required:
              - ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                ID:
                  type: array
                  items: {}
                  description: '| An array of department IDs. You can pass a string with a JSON array of IDs.'
                USER_DATA:
                  type: string
                  description: '| Return detailed user data.'
              required:
              - ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.department.get:
    post:
      summary: Get Information About the Department im.department.get
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the [MCP server](../../../ai-tools/mcp.md) so that the assistant can utilize the official REST documentation. The method `im.department.get` retrieves data about departments by their `ID` identifiers.
      operationId: im_department_get
      tags:
      - Chats
      externalDocs:
        url: https://apidocs.bitrix24.com/api-reference/chats/departments/im-department-get.html
        description: Official Documentation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ID:
                  type: array
                  items: {}
                  description: '| An array of department identifiers. You can pass a string with a JSON array of identifiers.'
                USER_DATA:
                  type: string
                  description: '| Return data about the department head.'
              required:
              - ID
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                ID:
                  type: array
                  items: {}
                  description: '| An array of department identifiers. You can pass a string with a JSON array of identifiers.'
                USER_DATA:
                  type: string
                  description: '| Return data about the department head.'
              required:
              - ID
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixResponse'
        4XX:
          description: Request error (400, 401, 403)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BitrixError'
      security:
      - AccessToken: []
      - OAuth2:
        - im
  /im.department.managers.get:
    post:
      summary: Get a List of Department Managers im.department.managers.get
      description: If you are developing integrations for Bitrix24 using AI tools (Codex, Claude 

# --- truncated at 32 KB (164 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/bitrix24/refs/heads/main/openapi/bitrix24-chats-api-openapi.yml