Get Content of Email Held for Moderation
Purpose
This API retrieves the content of the email that is held for moderation in a particular group.
OAuth Scope
Use the scope
ZohoMail.organization.groups.ALL (or) ZohoMail.organization.groups.READ
to generate the Authtoken.
ALL - Full access to groups.
READ - Read the messages in the group.
Request URL
Method: GET
https://mail.zoho.com/api/organization/{zoid}/groups/{zgid}/messages/{messageId}
Path Parameters
- zoid* long
- This parameter denotes the unique Zoho Organization Identifier for the organization.
- This parameter can be retrieved from the Organization Details API.
- zgid* long
- This key is used to identify the group from which the data has to be retrieved. This is generated during group addition.
- This parameter can be retrieved from the Get all groups API.
- messageId* long
- This parameter is a unique identifier assigned to a message or email.
- This parameter can be retrieved from the Get All Mails Held for Moderation API.
* - Mandatory parameter
Response Codes
Refer here for the response codes and their meaning.
Sample Request
Copiedcurl "https://mail.zoho.com/api/organization/60000****8002/groups/360000****8002/messages/6788989****" \
-X GET \
-H "Accept: application/json" \
-H "Authorization:Zoho-oauthtoken ***"
Sample Response
Copied{
"status": {
"code": 200,
"description": "success"
},
"data": [
{
"attachments": [],
"returnPath": "<rebecca@zylker.com>",
"mailContent": "Hi, there this is a test mail.....\r\n",
"header": "Return-Path: <rebecca@zylker.com>\r\nReceived: from 172.24.206.135 (172.24.206.135 [172.24.206.135]) by zylker.com.in\r\n\twith SMTPS id 1695363842364989.3010855868208; Fri, 22 Sep 2023 11:54:02 +0530 (IST)\r\nDate: Fri, 22 Sep 2023 11:54:01 +0530 (IST)\r\nFrom: rebecca@zylker.com\r\nTo: paula@zylker.com\r\nMessage-ID: <1354011814.0.1695363841553@[172.24.206.135]>\r\nSubject: hello world\r\nMIME-Version: 1.0\r\nContent-Type: text/plain; charset=us-ascii\r\nContent-Transfer-Encoding: 7bit\r\nX-ZohoMailClient: External\r\n",
"messageId": "1695363844569000003",
"mailId": "<1354011814.0.1695363841553@[172.24.206.135]>",
"toAddress": [
"paula@zylker.com"
],
"content": "<div>Hi, there this is a test mail.....\r<br /></div>"
}
]
}