Get Started
Usage API
More information

messages

Name Resource Description
Add a calendar POST api/2.0/mail/messages/calendarbody/add Adds an iCal body to the draft with the ID specified in the request.
Add an attachment POST api/2.0/mail/messages/attachment/add Adds an attachment to the draft with the ID specified in the request.
Attach the Teamlab document POST api/2.0/mail/messages/{id}/document Attaches the Teamlab document to the message with the ID specified in the request.
Delete an attachment from the message DELETE api/2.0/mail/messages/{messageid}/attachments/{attachmentid} Deletes the selected attachment from the message with the ID specified in the request.
Download attachments PUT api/2.0/mail/messages/attachment/downloadall/{messageId} Downloads all the attachments from the message with the ID specified in the request.
Export a message to CRM PUT api/2.0/mail/messages/crm/export Exports a mail to the CRM relation history for some entities.
Export an attachment PUT api/2.0/mail/messages/attachment/export Exports an attachment with the ID specified in the request to the folder with documents.
Export message attachments PUT api/2.0/mail/messages/attachments/export Exports all the message attachments to the folder with documents.
Get a message GET api/2.0/mail/messages/{id} Returns the detailed information about a message with the ID specified in the request.
Get a message template GET api/2.0/mail/messages/template Returns a message template - empty message in the JSON format.
Get filtered messages GET api/2.0/mail/messages Returns the messages with the parameters specified in the request if there were changes since last check date.
Get the previous or next message ID GET api/2.0/mail/messages/{id}/{direction} Returns the previous or next message ID filtered with the parameters specified in the request..
Move messages to the folder PUT api/2.0/mail/messages/move Moves the messages to a folder with the ID specified in the request.
Reassign drafts/templates PUT api/2.0/mail/messages/reassign Reassigns drafts/templates to the selected email.
Remove messages PUT api/2.0/mail/messages/remove Removes messages with the IDs specified in the request.
Restore messages PUT api/2.0/mail/messages/restore Restores the messages with the IDs specified in the request to their original folders.
Save a message as a draft PUT api/2.0/mail/drafts/save Saves a message with the ID specified in the request as a draft.
Send a message PUT api/2.0/mail/messages/send Sends a message with the ID specified in the request.
Set a message status PUT api/2.0/mail/messages/mark Sets a status to the messages with the IDs specified in the request.