Webmail in REST 3.0: section overview
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Webmail in Bitrix24 allows you to work with e-mails directly in the interface: read and send e-mails, filter correspondence, link e-mails to the CRM, and also create a chat, a task, a calendar event, or a Feed message from an e-mail.
Mail methods work with three groups of objects:
- Mailboxes — show a list of user mailboxes, mailbox data, and available sender addresses
- E-mails — find and retrieve e-mails, send and process an e-mail, and create linked objects from an e-mail
- Recipients — find contacts and employees for addressing e-mails and show recipient fields
Quick links: all methods
User documentation: Manage emails in Bitrix24
Getting Started
- Retrieve a list of mailboxes using the mail.mailbox.list method
- Select a mailbox and retrieve the required e-mails using the mail.message.list method
- Retrieve an e-mail by identifier using the mail.message.get method
- Perform an action with an e-mail: send a reply, move an e-mail, or create a linked object
To manage mail services, use the methods in the mailservice.* section.
Limitations and recommendations
- The mail.mailbox.* and mail.message.* methods only work with mailboxes to which the current user has access
- Use the
*.field.listand*.field.getmethods to check available fields and their types
User documentation
Connection with Other Objects
Mailbox. The mail.mailbox.* methods work with the mailboxes of the current user. The mailbox identifier id is used in methods for retrieving a mailbox and searching for e-mails. Available mailboxes can be retrieved using the mail.mailbox.list method.
E-mail. The mail.message.* methods work with e-mails available to the current user. The e-mail identifier id is required to retrieve an e-mail, reply to it, forward it, move it, or create a linked object.
Recipient. The mail.recipient.* methods help select e-mail recipients. Contacts can be found using the mail.recipient.listcontacts method, and employees via the mail.recipient.listemployees method.
CRM. An e-mail can be linked to a CRM activity using the mail.message.createcrmactivity method. The link can be removed using the mail.message.removecrmactivity method.
Task. An e-mail can be converted into a task using the mail.message.createtask method
Calendar. A calendar event can be created from an e-mail using the mail.message.createcalendarevent method
Chat. The text of an e-mail can be discussed in a chat using the mail.message.createchat method
News feed. An e-mail can be published as a post in the News feed using the mail.message.createfeedpost method
Overview of Methods
Scope:
Who can execute the methods: depends on the method
Mailboxes
|
Method |
Description |
|
Returns a list of the current user's mailboxes |
|
|
Returns a mailbox by identifier |
|
|
Returns sender addresses available to the current user |
|
|
Returns a list of mailbox fields |
|
|
Returns a mailbox field description |
E-mails
|
Method |
Description |
|
Searches for e-mails in the current user's mailboxes |
|
|
Returns an e-mail by identifier |
|
|
Returns an e-mail thread by the identifier of a single e-mail |
|
|
Sends a new e-mail |
|
|
Sends a reply to an e-mail |
|
|
Forwards an e-mail |
|
|
Moves e-mails to a folder, spam, or trash |
|
|
Creates a CRM activity from an e-mail |
|
|
Removes the link between an e-mail and a CRM activity |
|
|
Creates a task from an e-mail |
|
|
Creates a calendar event from an e-mail |
|
|
Creates a chat from an e-mail |
|
|
Creates a News Feed message from an e-mail |
|
|
Returns a list of e-mail fields |
|
|
Returns an e-mail field description |
Recipients
|
Method |
Description |
|
Searches for contacts in the address book |
|
|
Searches for employees by name or e-mail |
|
|
Returns a list of recipient fields |
|
|
Returns a recipient field description |