E-mails in mail: methods 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.
E-mails in Bitrix24 mail are messages in a user's mailboxes, including correspondence threads and related activities.
The section methods allow you to:
- search for e-mails and retrieve an individual e-mail or a thread of e-mails
- send a new e-mail, a reply, or a forward
- move e-mails to folders, spam, or the trash
- create related objects in other tools from an e-mail
- retrieve a list of e-mail fields and the description of a specific field
Quick links: all methods
User documentation: Manage emails in Bitrix24
When to use each method
Use mail.message.list when you need to find e-mails in the current user's mailboxes based on filter conditions.
Use mail.message.get when you need to retrieve an e-mail by its id.
Use mail.message.thread when you need to retrieve an e-mail thread by the id of a single e-mail.
Use mail.message.send, mail.message.reply, and mail.message.forward when you need to send a new e-mail, a reply, or a forward.
Use mail.message.movetofolder when you need to move e-mails to a folder, spam, or the trash.
Use mail.message.createcrmactivity and mail.message.removecrmactivity when you need to create or delete a link between an e-mail and a CRM activity.
Use mail.message.createtask, mail.message.createcalendarevent, mail.message.createchat, and mail.message.createfeedpost when you need to pass the e-mail content to a task, calendar, chat, or Feed.
Use mail.message.field.list and mail.message.field.get when you need to:
- find out the available e-mail fields
- retrieve the types and metadata of a specific field
Workflow for working with e-mails
- Retrieve a list of e-mails via mail.message.list
- Retrieve full e-mail data via mail.message.get or a thread via mail.message.thread
- Perform the target action: send a new e-mail, a reply, or a forward via mail.message.send, mail.message.reply, mail.message.forward
- If necessary, move e-mails to another folder via mail.message.movetofolder or create related objects in CRM, tasks, calendar, chat, and Feed
- Clarify the field structure via
*.field.listand*.field.get
Section restrictions
- The current user can only work with e-mails from mailboxes they have access to
- Most operations require a correct
idof an e-mail frommail.message.listormail.message.get
Connection with Other Objects
Mailbox. Section methods work with e-mails in the user's mailboxes. A mailbox identifier can be retrieved using mail.mailbox.* methods.
Recipient. To select recipients, use mail.recipient.* methods.
CRM. An e-mail can be linked to a CRM activity, and this link can be removed via mail.message.createcrmactivity and mail.message.removecrmactivity methods.
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
|
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 post from an e-mail |
|
|
Returns a list of e-mail fields |
|
|
Returns the description of an e-mail field |