GET - Contents of an email

 Purpose

This API is used to retrieve the message contents of an email based on the messageid parameter passed with the message. In case, you retrieve an email from a thread, you can add the includeBlockContent parameter to get the reply email and the parent email separately. If block content is available but the includeBlockContent parameter is not passed, then the original email content is retrieved.

 Request URL

 http://mail.zoho.com/api/accounts/<accountId>/folders/<folderid/messages/<messageId>/content

 Request Parameters

ParameterData TypeDescription
includeBlockContentBooleanTo include the blockquote content in an email along with the email content.

Note:

Including blockquote Content only applies in case of a reply email. If blockquote Content is unavailable or unable to retrieve in/from an email, the blockquote content will be retrieved along with the original mail content in HTML format.

 Response Codes

Please refer Response Codes.

Sample Response


				{
    "status: : {
    "code": 200
        "description": "success"
}
"data" {
    "blockContent": "<blockquote style=\"border-left: 1.0px solid rgb(204,204,204);padding-left: 6.0px;margin: 0.0px 0.0px 0.0px 5.0px;\"><div><div style=\"font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;\"><div>hello smkarthik<br /></div><br /><div class=\"x_2121914786zmail_extra\"><br /><div>---- On Thu, 14 Nov 2019 13:17:03 +0530 <b>190 190 <<a target=\"_blank\" href=\"mailto:190@140.com\">190@140.com</a>></b> wrote ----<br /></div><br /><div><br /></div></div><div><br /></div></div><br /></div><blockquote style=\"border-left: 1.0px solid rgb(204,204,204);padding-left: 6.0px;margin: 0.0px 0.0px 0.0px 5.0px;\"><div><div style=\"font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;\">HI DA<br /></div><br /></div></blockquote></blockquote>",
    "messageId": 1573717993711000001,
    "content": "<meta /><div><div style=\"font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;\"><div>my name is smkarthik hello</div><br /><div class=\"x_-1132381433zmail_extra\"><br /><div id=\"x_-1132381433Zm-_Id_-Sgn1\">---- On Thu, 14 Nov 2019 13:18:23 +0530 <b>189 189 <<a href=\"mailto:189@140.com\" target=\"_blank\">189@140.com</a>></b> wrote ----<br /></div><br /><div id = \"zmail_block\"></div></div><div><br /></div></div><br /></div>"
}
}