# Messages

Read, send, edit and delete messages, mark them as read or set them aside for later, open a chat at its first page or at a specific message, see who has read a message, search and forward messages, manage reactions, pins, disappearing messages, channel comments and message blocks, show the typing indicator, and load messages from several dialogs in a single request.

**Scope:** `im` | **Base URL:** `https://vibecode.bitrix24.com/v1` | **Authorization:** `X-Api-Key`

## Operations

- [Read messages](./messages/list.md) — `GET /v1/chats/:dialogId/messages`
- [Load a chat](./messages/load.md) — `GET /v1/chats/:dialogId/load`
- [Messages around a message](./messages/context.md) — `GET /v1/chats/messages/:messageId/context`
- [First page of a chat](./messages/initial.md) — `GET /v1/chats/:dialogId/messages/initial`
- [Who viewed a message](./messages/viewers.md) — `GET /v1/chats/messages/:messageId/viewers`
- [Load around a message](./messages/load-in-context.md) — `GET /v1/chats/messages/:messageId/load`
- [Send a message](./messages/send.md) — `POST /v1/chats/:dialogId/messages`
- [Edit a message](./messages/update.md) — `PATCH /v1/chats/:dialogId/messages/:messageId`
- [Delete a message](./messages/delete.md) — `DELETE /v1/chats/:dialogId/messages/:messageId`
- [Disappearing message](./messages/disappear.md) — `POST /v1/chats/messages/:messageId/disappear`
- [Notify a recipient in Do Not Disturb](./messages/inform.md) — `POST /v1/chats/messages/:messageId/inform`
- [Remove a link preview](./messages/url-preview.md) — `DELETE /v1/chats/messages/:messageId/url-preview`
- [Mark as read](./messages/read.md) — `POST /v1/chats/:dialogId/read`
- [Mark messages as read](./messages/read-messages.md) — `POST /v1/chats/messages/read`
- [Read later](./messages/mark.md) — `POST /v1/chats/messages/:messageId/mark`
- [Bulk load from several dialogs](./messages/bulk.md) — `POST /v1/chats/messages/bulk`
- [Search messages in a chat](./messages/search.md) — `GET /v1/chats/:dialogId/messages/search`
- [Forward messages](./messages/forward.md) — `POST /v1/chats/:dialogId/forward`
- [List reactions to a message](./messages/reactions-list.md) — `GET /v1/chats/messages/:messageId/reactions`
- [Add a reaction](./messages/reactions-create.md) — `POST /v1/chats/messages/:messageId/reactions`
- [Remove a reaction](./messages/reactions-delete.md) — `DELETE /v1/chats/messages/:messageId/reactions/:reaction`
- [List pinned messages](./messages/pins.md) — `GET /v1/chats/:dialogId/pins`
- [Pin a message](./messages/pins-create.md) — `POST /v1/chats/messages/:messageId/pin`
- [Unpin a message](./messages/pins-delete.md) — `DELETE /v1/chats/messages/:messageId/pin`
- [Number of pinned messages](./messages/pins-count.md) — `GET /v1/chats/:dialogId/pins/count`
- [Typing indicator](./messages/typing.md) — `POST /v1/chats/:dialogId/typing`
- [List unread anchors](./messages/anchors-list.md) — `GET /v1/chats/anchors`
- [Remove chat anchors](./messages/anchors.md) — `POST /v1/chats/:dialogId/anchors/read`
- [Remove message anchors](./messages/anchors-messages.md) — `POST /v1/chats/anchors/read`
- [Comment summary for posts](./messages/comments.md) — `GET /v1/chats/messages/comments`
- [Mark all channel comments as read](./messages/comments-read-all.md) — `POST /v1/chats/:dialogId/comments/read-all`
- [Follow the comments of a post](./messages/comments-subscription-create.md) — `POST /v1/chats/messages/:messageId/comments/subscription`
- [Stop following the comments of a post](./messages/comments-subscription-delete.md) — `DELETE /v1/chats/messages/:messageId/comments/subscription`
- [Open the discussion of a post](./messages/comments-chat.md) — `POST /v1/chats/messages/:messageId/comments/chat`
- [Add a block to a message](./messages/blocks-create.md) — `POST /v1/chats/messages/:messageId/blocks`
- [Replace a block of a message](./messages/blocks-update.md) — `PATCH /v1/chats/messages/:messageId/blocks/:blockId`
- [Remove a block from a message](./messages/blocks-delete.md) — `DELETE /v1/chats/messages/:messageId/blocks/:blockId`
- [Execute a bot command](./messages/command.md) — `POST /v1/chats/messages/:messageId/command`
- [Unread starting from a message](./messages/unread.md) — `POST /v1/chats/messages/:messageId/unread`

## See also

- [Chats and messages](/docs/chats)
- [Chat discovery](/docs/chats/discovery)
- [Files](/docs/chats/files)
- [Text formatting (BB codes)](/docs/chats/messages/formatting)
- [Keyboard](/docs/chats/messages/keyboard)
- [Attachments](/docs/chats/messages/attach)
