Bitrix24 Chats API

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

GitHub OpenAPI

Operations 67

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /im.chat.add Create a chat · Create Chat im.chat.add #
Ask an LLM
“How do I create a new chat with a group of users?”
“Can I set a color and avatar when creating a chat?”
Tell an agent
Create a chat titled {title} with users {users}.
Create a chat {title} with users {users} and set its color to {color}.
POST /im.chat.get Get the chat ID for an entity · Get Chat ID im.chat.get #
Ask an LLM
“How do I find the chat ID linked to a deal or lead?”
“What chat ID is attached to a specific CRM entity?”
Tell an agent
Get the chat ID for {entity_type} {entity_id}.
Find the chat linked to {entity_type} {entity_id}.
POST /im.chat.leave Leave a chat · Leave Chat im.chat.leave #
Ask an LLM
“How do I leave a chat I no longer need?”
“Can I exit a group chat without deleting it?”
Tell an agent destructive · confirm first
Leave chat {chat_id}.
Exit the group chat {chat_id}.
POST /im.chat.mute Mute or unmute chat notifications · Disable Notifications from Chat im.chat.mute #
Ask an LLM
“How do I stop notifications from a chat?”
“Can I silence a chat for a while?”
Tell an agent
Mute notifications for chat {chat_id} in dialog {dialog_id}.
Unmute chat {chat_id} in dialog {dialog_id} by setting mute {mute}.
POST /im.chat.setOwner Transfer chat ownership · Change Chat Owner im.chat.setOwner #
Ask an LLM
“How do I hand over a chat to another user?”
“Can I make someone else the owner of a chat?”
Tell an agent
Make user {user_id} the owner of chat {chat_id}.
Transfer ownership of chat {chat_id} to {user_id}.
POST /im.chat.updateAvatar Change a chat's avatar · Update Chat Avatar im.chat.updateAvatar #
Ask an LLM
“How do I upload a new avatar for a chat?”
“Can I replace a chat's profile image?”
Tell an agent
Set chat {chat_id}'s avatar to {avatar}.
Replace the chat {chat_id} avatar with {avatar}.
POST /im.chat.updateColor Change a chat's color · Change Chat Color im.chat.updateColor #
Ask an LLM
“How do I change the color of a chat?”
“Can I pick a new color for a chat on mobile?”
Tell an agent
Set chat {chat_id}'s color to {color}.
Change the chat {chat_id} color to {color}.
POST /im.chat.updateTitle Rename a chat · Update Chat Title im.chat.updateTitle #
Ask an LLM
“How do I rename an existing chat?”
“Can I change a chat's title after creating it?”
Tell an agent
Rename chat {chat_id} to {title}.
Change the title of chat {chat_id} to {title}.
POST /im.chat.user.add Invite users to a chat · Invite Participants to Chat im.chat.user.add #
Ask an LLM
“How do I add new people to an existing chat?”
“Can I invite colleagues to a chat without showing the chat history?”
Tell an agent
Add users {users} to chat {chat_id}.
Invite {users} to chat {chat_id} with history hidden: {hide_history}.
POST /im.chat.user.delete Remove a user from a chat · Exclude Participants from Chat im.chat.user.delete #
Ask an LLM
“How do I remove someone from a chat?”
“Can I exclude a user from a group chat?”
Tell an agent destructive · confirm first
Remove user {user_id} from chat {chat_id}.
Exclude {user_id} from chat {chat_id}.
POST /im.chat.user.list List the participants of a chat · Get Chat Participant IDs im.chat.user.list #
Ask an LLM
“Who is in a particular chat?”
“How do I get the participant IDs of a chat?”
Tell an agent
List the participants of chat {chat_id}.
Show who is in chat {chat_id}.
POST /im.counters.get Get unread message and notification counts · Get Counters im.counters.get #
Ask an LLM
“How many unread messages and notifications do I have?”
“What are my unread counts across chats?”
Tell an agent
Show my unread message and notification counters.
Get my chat unread counts.
POST /im.department.colleagues.list List a user's colleagues · Get the List of Colleagues for the Current User im.department.colleagues.list #
Ask an LLM
“Who are my colleagues in Bitrix24?”
“Can I get a list of colleagues for a user?”
Tell an agent
List my colleagues.
Show colleagues for user {user_data} from offset {offset} with limit {limit}.
POST /im.department.employees.get List employees in departments · Get a List of Employees from Departments im.department.employees.get #
Ask an LLM
“Who works in a given department?”
“Can I get a list of employees from several departments?”
Tell an agent
List employees in departments {id}.
Show {user_data} employees from department {id}.
POST /im.department.get Get department information · Get Information About the Department im.department.get #
Ask an LLM
“What are the details of a department?”
“Can I look up a department by its ID?”
Tell an agent
Get department {id}.
Show department {id} with head details {user_data}.
POST /im.department.managers.get List managers of departments · Get a List of Department Managers im.department.managers.get #
Ask an LLM
“Who are the managers of certain departments?”
“Can I get the managers for several departments at once?”
Tell an agent
List managers of departments {id}.
Show department managers for {id} with {user_data} data.
POST /im.dialog.get Get chat information · Get Chat Data im.dialog.get #
Ask an LLM
“What are the details of a chat?”
“Can I fetch chat information by its dialog ID?”
Tell an agent
Get chat information for dialog {dialog_id}.
Show the details of chat {dialog_id}.
POST /im.dialog.messages.get Get recent messages in a chat · Get the List of Recent Messages im.dialog.messages.get #
Ask an LLM
“What are the latest messages in a chat?”
“Can I fetch messages from a chat by message ID?”
Tell an agent
Get the last {limit} messages in chat {dialog_id}.
Show messages in chat {dialog_id} older than {last_id}.
POST /im.dialog.read Mark chat messages as read · Set the "read" flag for messages im.dialog.read #
Ask an LLM
“How do I mark all messages in a chat as read?”
“Can I mark a chat's messages up to a certain one as read?”
Tell an agent
Mark all messages in chat {dialog_id} as read.
Mark chat {dialog_id} read up to message {message_id}.
POST /im.dialog.read.all Mark all chats as read · Set the "read" flag for all chats im.dialog.read.all #
Ask an LLM
“How do I mark every chat in my Bitrix24 chat list as read?”
“Can I clear the unread count across all conversations at once?”
Tell an agent
Mark all my chats as read.
Set the read flag on every conversation.
POST /im.dialog.unread Mark messages as unread from a point · Set the "unread" flag for messages im.dialog.unread #
Ask an LLM
“How do I make messages in a chat unread again from a given message?”
“Can I mark everything from one message on as unread?”
Tell an agent
Mark messages in chat {DIALOG_ID} as unread starting from message {MESSAGE_ID}.
Set the unread flag on chat {DIALOG_ID} from message {MESSAGE_ID} onwards.
POST /im.dialog.users.list List users in a chat · Get the List of Participants im.dialog.users.list #
Ask an LLM
“Who are the participants in a chat?”
“Can I skip system users when listing chat participants?”
Tell an agent
List participants in chat {dialog}.
List users in chat {dialog} excluding external users.
POST /im.dialog.writing Send a typing indicator · Send "User is typing" indicator im.dialog.writing #
Ask an LLM
“How do I show a user is typing in a chat?”
“Can I send a typing indicator to a conversation?”
Tell an agent
Send a typing indicator in chat {DIALOG_ID}.
Tell chat {DIALOG_ID} someone is typing.
POST /im.disk.file.commit Add a file to a chat · Add File to Chat im.disk.file.commit #
Ask an LLM
“How do I attach a file to a chat conversation?”
“Can I add a Drive file to a chat as a message?”
Tell an agent
Add file {FILE_ID} to chat {DIALOG_ID}.
Attach Drive file {FILE_ID} to chat {DIALOG_ID} with message {MESSAGE}.
POST /im.disk.file.delete Delete a file from a chat folder · Delete File from Chat Folder im.disk.file.delete #
Ask an LLM
“How do I remove a file from a chat folder?”
“Can only the sender delete a file from a chat?”
Tell an agent destructive · confirm first
Delete file {FILE_ID} from chat {CHAT_ID}.
Remove file {FILE_ID} from chat folder {CHAT_ID}.
POST /im.disk.file.save Save a chat file to my Drive · Save File to Your Drive im.disk.file.save #
Ask an LLM
“How do I save a file from a chat to my personal Drive?”
“Where does a chat file end up when I save it?”
Tell an agent
Save chat file {FILE_ID} to my Drive.
Move file {FILE_ID} from the chat folder into my personal Drive.
POST /im.disk.folder.get Get the chat file storage folder · Get Chat File Storage Folder im.disk.folder.get #
Ask an LLM
“Where are files stored for a chat?”
“How do I get the Drive folder ID for a chat?”
Tell an agent
Get the file storage folder for chat {CHAT_ID}.
Find the Drive folder where chat {DIALOG_ID} files live.
POST /im.message.add Send a chat message · Send Message im.message.add #
Ask an LLM
“How do I send a text message to a chat?”
“Can I attach files or a keyboard to a chat message?”
Tell an agent
Send {MESSAGE} to chat {DIALOG_ID}.
Post a message {MESSAGE} in chat {DIALOG_ID} with attachments {ATTACH}.
POST /im.message.command Run a chat-bot command on a message · Execute the chat-bot command im.message.command #
Ask an LLM
“How do I make a chat bot run a command in response to a message?”
“Can I pass parameters to a bot command from a message?”
Tell an agent
Run bot {BOT_ID}'s command {COMMAND} on message {MESSAGE_ID}.
Execute bot {BOT_ID} command {COMMAND} with params {COMMAND_PARAMS} in context of message {MESSAGE_ID}.
POST /im.message.delete Delete a chat message · Delete Message im.message.delete #
Ask an LLM
“How do I delete a message from a chat?”
“Can I remove a single message someone sent?”
Tell an agent destructive · confirm first
Delete message {MESSAGE_ID}.
Remove chat message {MESSAGE_ID}.
POST /im.message.like Like or unlike a chat message · Change Status to "Like" im.message.like #
Ask an LLM
“How do I like a message in a chat?”
“Can I remove my like from a message?”
Tell an agent
Like message {MESSAGE_ID}.
Set the like action {ACTION} on message {MESSAGE_ID}.
POST /im.message.share Create an object from a chat message · Create an Object Based on the Message im.message.share #
Ask an LLM
“How do I turn a chat message into a task or contact?”
“Can I create an object based on a message?”
Tell an agent
Create a {TYPE} object from message {MESSAGE_ID} in chat {DIALOG_ID}.
Convert chat message {MESSAGE_ID} in {DIALOG_ID} into a {TYPE} object.
POST /im.message.update Edit a sent chat message · Update Message im.message.update #
Ask an LLM
“How do I edit a message I already sent in a chat?”
“Can I change the text or attachments of an existing chat message?”
Tell an agent
Update message {MESSAGE_ID} to read {MESSAGE}.
Edit chat message {MESSAGE_ID} to include attachments {ATTACH}.
POST /im.notify Send a notification to a user · Send Notification im.notify #
Ask an LLM
“How do I send a notification to a Bitrix24 user?”
“Can I send a notification with a tag so it can be replaced later?”
Tell an agent
Send notification {MESSAGE} to user {USER_ID}.
Notify user {USER_ID} of {MESSAGE} with tag {TAG}.
POST /im.notify.answer Reply to a notification with a quick answer · Responding to Notifications with Quick Response im.notify.answer #
Ask an LLM
“How do I answer a notification with a quick text response?”
“Can I send a quick reply to a notification from a bot?”
Tell an agent
Answer notification {NOTIFY_ID} with {ANSWER_TEXT}.
Send quick reply {ANSWER_TEXT} to notification {NOTIFY_ID}.
POST /im.notify.confirm Respond to a notification button · Interacting with Notification Buttons im.notify.confirm #
Ask an LLM
“How do I select a button on a notification?”
“Can I send the value of a notification button back?”
Tell an agent
Confirm notification {NOTIFY_ID} with value {NOTIFY_VALUE}.
Select button {NOTIFY_VALUE} on notification {NOTIFY_ID}.
POST /im.notify.delete Delete a notification · Delete Notification im.notify.delete #
Ask an LLM
“How do I delete a notification by its ID?”
“Can I remove a notification using its tag?”
Tell an agent destructive · confirm first
Delete notification {ID}.
Remove notification with tag {TAG} and sub-tag {SUB_TAG}.
POST /im.notify.get List a user's notifications · Get Notifications im.notify.get #
Ask an LLM
“What notifications have I received?”
“Can I page through my notifications?”
Tell an agent
List my notifications.
Show {LIMIT} notifications after {LAST_ID}.
POST /im.notify.personal.add Send a personal notification to a user · Send Personal Notification im.notify.personal.add #
Ask an LLM
“How do I send a personal notification to a specific user?”
“Can I attach files to a personal notification?”
Tell an agent
Send a personal notification to user {user_id} saying {message}.
Notify {user_id} of {message} with attachment {attach}.
POST /im.notify.read Mark notifications as read or unread · Read or Mark Notification as Unread im.notify.read #
Ask an LLM
“How do I mark a chat notification as read?”
“Can I mark all notifications read at once?”
Tell an agent
Mark notification {id} as {action}.
Mark all notifications as read.
POST /im.notify.read.all Mark all notifications as read · Read All Notifications im.notify.read.all #
Ask an LLM
“How do I clear my entire notification list at once?”
“Is there a way to mark every notification read in one call?”
Tell an agent
Mark all my notifications as read.
Clear my notification list by marking everything read.
POST /im.notify.read.list Mark a list of notifications read or unread · Read the list of notifications im.notify.read.list #
Ask an LLM
“How do I mark several notifications as read at once?”
“Can I mark notifications by their IDs instead of a single one?”
Tell an agent
Mark notifications {ids} as {action}.
Set notifications {ids} to read.
POST /im.notify.schema.get Get the notification type schema · Get Notification Type Schema im.notify.schema.get #
Ask an LLM
“What notification types does the chat system support?”
“Where can I see the schema for chat notification types?”
Tell an agent
Get the notification type schema.
Show me the available chat notification types.
POST /im.notify.system.add Send a system notification to a user · Send System Notification im.notify.system.add #
Ask an LLM
“How do I send a system notification to a user?”
“Can I send a system notification with an email fallback message?”
Tell an agent
Send a system notification to user {user_id} saying {message}.
Notify {user_id} of {message} with email fallback {message_out}.
POST /im.recent Pin or unpin a chat at the top of recent chats · Pin a Chat at the Top of the im.recent List #
Ask an LLM
“How do I pin a chat to the top of my recent chats?”
“Can I unpin a chat from the top of the recent list?”
Tell an agent
Pin chat {dialog_id} at the top of my recent chats.
Unpin chat {dialog_id} from the top of recent chats.
POST /im.recent.get Get a short list of recent chats · Get a Shortened List of Recent Chats im.recent.get #
Ask an LLM
“What are my most recently used chats?”
“Can I skip open lines when getting recent chats?”
Tell an agent
Get my recent chats.
Show recent chats, skipping open lines {skip_openlines}.
POST /im.recent.hide Remove a chat from the recent list · Remove Chat from the Recent List im.recent.hide #
Ask an LLM
“How do I remove a chat from my recent list?”
“Can I hide a chat I no longer want to see?”
Tell an agent destructive · confirm first
Remove chat {dialog_id} from my recent list.
Hide chat {dialog_id} from recent chats.
POST /im.recent.list Get the full list of recent conversations · Get the List of Chats im.recent.list #
Ask an LLM
“How do I get the complete list of my recent conversations?”
“Can I skip open channel chats when listing recent conversations?”
Tell an agent
Get my full recent conversation list.
List recent conversations skipping open lines {skip_openlines}.
POST /im.recent.unread Set or remove the read flag on a chat · Set or Remove the "Read" Flag for the Chat im.recent.unread #
Ask an LLM
“How do I mark a chat as unread again?”
“Can I toggle the read flag on a conversation?”
Tell an agent
Set chat {dialog_id} to {action} read.
Mark chat {dialog_id} unread.
POST /im.revision.get Get the chat API revisions · Get API Revisions im.revision.get #
Ask an LLM
“Which chat API revisions are available on my Bitrix24?”
“How do I check chat module compatibility with my server version?”
Tell an agent
Get the chat API revisions.
Check the current chat module revision for compatibility.
POST /im.search.chat.list Find chats by name or participant · Find Chats im.search.chat.list #
Ask an LLM
“How do I find a chat by its title or a participant's name?”
“Can I search open channel chats by keyword?”
Tell an agent
Find chats matching {find}.
Search open channel chats for {find_lines}.
POST /im.search.department.list Find departments by name · Find Departments im.search.department.list #
Ask an LLM
“How do I find a department by its full name?”
“Can I include the department manager's data in the search?”
Tell an agent
Find departments named {find}.
Search departments for {find} and include manager data {user_data}.
POST /im.search.last.add Add a chat to the search history · Add Entry to Search History im.search.last.add #
Ask an LLM
“How do I add a chat to my search history?”
“Can I push a chat onto the last search history list?”
Tell an agent
Add chat {dialog_id} to my search history.
Push chat {dialog_id} onto the last search history.
POST /im.search.last.delete Remove a chat from the search history · Delete Record from Search History im.search.last.delete #
Ask an LLM
“How do I remove a chat from my search history?”
“Can I delete a chat from the last search history?”
Tell an agent destructive · confirm first
Remove chat {dialog_id} from my search history.
Delete chat {dialog_id} from the last search history.
POST /im.search.last.get Get the search history · Get Search History im.search.last.get #
Ask an LLM
“What chats are in my search history?”
“Can I see the last search history with open lines skipped?”
Tell an agent
Get my search history.
Show the last search history, skipping open lines {skip_openlines}.
POST /im.search.user.list Find users by name or job title · Find Users im.search.user.list #
Ask an LLM
“How do I find a colleague by first name, last name or job title?”
“Can I search only business users?”
Tell an agent
Find users matching {find}.
Search business users for {find} with job title {business}.
POST /im.user.get Get data for a user · Get User Data im.user.get #
Ask an LLM
“How do I get the current user's profile data?”
“Can I fetch a user's profile with a high-resolution avatar?”
Tell an agent
Get my user profile.
Get user {id} with high-res avatar {avatar_hr}.
POST /im.user.list.get Get data for a list of users · Get User Data with im.user.list.get #
Ask an LLM
“How do I fetch several users' profiles at once?”
“Can I get extranet users' data in a list?”
Tell an agent
Get profiles for users {id}.
Fetch user list {id} with result type {result_type}.
POST /im.user.status.get Get my current chat status · Get User Status im.user.status.get #
Ask an LLM
“What status is my Bitrix24 chat user currently set to?”
“Can I check whether I am away or active in the chat?”
Tell an agent
Show my current chat status.
Get the status the chat has set for me.
POST /im.user.status.idle.end Stop the automatic away status · Disable Automatic Status "Away" im.user.status.idle.end #
Ask an LLM
“How do I stop the chat from marking me away automatically after inactivity?”
“Can I disable the automatic away status without changing my status manually?”
Tell an agent
Disable the automatic away status for me.
End the automatic away status so I appear active.
POST /im.user.status.idle.start Start the automatic away status · Enable Automatic Status "Away" im.user.status.idle.start #
Ask an LLM
“Can the chat automatically set me to away after a period of inactivity?”
“How long can I set the automatic away delay to?”
Tell an agent
Start the automatic away status after {ago} minutes of inactivity.
Enable the automatic away status with a {ago}-minute delay.
POST /im.user.status.set Set my chat status · Set User Status im.user.status.set #
Ask an LLM
“How do I set my chat status to busy or away?”
“Is the status I set case-sensitive?”
Tell an agent
Set my chat status to {status}.
Mark me as {status} in the chat.
POST /imbot.app.register Register a chat application · Register a Chat Application imbot.app.register #
Ask an LLM
“How do I register a new chat application for my bot?”
“Can I register a JS command or iframe chat app?”
Tell an agent
Register chat application {name} with code {code}.
Register a chat app {name} owned by bot {bot_id} using JS method {js_method}.
POST /imbot.app.unregister Unregister a chat application · Unregister Chat Application imbot.app.unregister #
Ask an LLM
“How do I remove a chat application I registered?”
“Can I unregister an app by its name?”
Tell an agent destructive · confirm first
Unregister chat application {name}.
Remove the chat app with ID {app_id}.
POST /imbot.app.update Update a chat application · Update Application Data in Chat imbot.app.update #
Ask an LLM
“How do I change the iframe URL of an existing chat app?”
“Can I resize the iframe window of a registered chat app?”
Tell an agent
Update chat app {app_id} to use iframe {iframe}.
Resize chat app {app_id} to {width} wide and {height} tall.

Specifications

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:bitrix24-chats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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 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:


# --- truncated at 32 KB (162 KB total) ---
# Full source: https://artifacts.apis.io/bitrix24/openapi/bitrix24-chats-api-openapi.yml