Get mail details
Purpose
This API is used to get the details of an email.
Request URL
Current mail details
Get default details (From, To, CC)
Using the Get current mail details command will return the current email details. This can be done by using the "On Mail Preview" event.
clientsdk.get(["currentMailInfo"]).then(function(mailObj){console.log(mailObj);});
Get details using message ID
Using the Get mail details command, you can obtain the details of the email associated with the message ID.
clientsdk.get(["mailInfo",<messageID>]).then(function(mailObj){console.log(mailObj);});
Request Parameters
| Parameter | Data Type | Description |
| messageID* | String | The unique identifier used for the email |
* - Mandatory parameters
Sample Response - Default mail details
Copied{
"FROM": "rebecca@zylker.com",
"TO": ""Paula M"<paula@zylker.com>",
"CC": "",
"BCC":" ",
"ACCOUNT_ID": "5164940000000008001",
"MSGID": "3881227000005765001",
"SUBJECT": "Website Design",
"SM": "<p>Attached design ideas</p>",
"NEWATTR": "[ {"st": 0, "attType": 1, "e": "157742754265103002", "part": "1", "fn": "Sample_Name.PDF", "l": [], "fmt": "pdf", "fs": "1443832", "ft": 102, "et": 1, "p": "1", "inline": false, "size": "1443892", "u": "c6f059b0-2870-11ea-aea7-0cc47a81d49e", "appId": "0", "name": "Sample_Name.PDF", "tn": false, "Id": "137967203327290000", "id": "137967203327290000", "shT": 0, "gId": "688974046", "groupId": "688974046", "entityId": "1577427542651030001", "entityType": 1, "attachId": "137967203427290000"}]",
"CONTENT":"<meta /><div><div style="font-size: 12pt; font-family: Georgia, Times New Roman, Times, serif"><div>Hi Paula,<br /></div><div><br /></div><div>This is in continuation to our discussion about the upcoming website design.<br /></div><div><br /></div><div>I have attached with this email some design ideas that my team has come up with.<br /></div><div><br /></div><div><br /></div><div><br /></div><div>Regards<br /></div><div>Rebecca</div><div><br /></div></div><br /></div>",
"FOLDERNAME": "Inbox"
"SENTTIME": "Tue, 08 Sep 2026 22:42:40 +0530"
"PHONE_NUMBERS": ["", ""]
}Sample Response - Default mail details for Shared Mailbox emails
Copied{
"FROM": "rebecca@zylker.com",
"TO": ""Paula M"<paula@zylker.com>",
"CC": "",
"BCC":" ",
"ACCOUNT_ID": "5164940000000008001",
"MSGID": "3881227000005765001",
"SUBJECT": "Website Design",
"SM": "<p>Attached design ideas</p>",
"NEWATTR": "[ {"st": 0, "attType": 1, "e": "157742754265103002", "part": "1", "fn": "Sample_Name.PDF", "l": [], "fmt": "pdf", "fs": "1443832", "ft": 102, "et": 1, "p": "1", "inline": false, "size": "1443892", "u": "c6f059b0-2870-11ea-aea7-0cc47a81d49e", "appId": "0", "name": "Sample_Name.PDF", "tn": false, "Id": "137967203327290000", "id": "137967203327290000", "shT": 0, "gId": "688974046", "groupId": "688974046", "entityId": "1577427542651030001", "entityType": 1, "attachId": "137967203427290000"}]",
"CONTENT":"<meta /><div><div style="font-size: 12pt; font-family: Georgia, Times New Roman, Times, serif"><div>Hi Paula,<br /></div><div><br /></div><div>This is in continuation to our discussion about the upcoming website design.<br /></div><div><br /></div><div>I have attached with this email some design ideas that my team has come up with.<br /></div><div><br /></div><div><br /></div><div><br /></div><div>Regards<br /></div><div>Rebecca</div><div><br /></div></div><br /></div>",
"FOLDERNAME": "Inbox"
"SENTTIME": "Tue, 08 Sep 2026 22:42:40 +0530"
"PHONE_NUMBERS": ["", ""]
"isSharedInbox": true
"sharedInboxEmailInfo": {"accId": "12345678901234"}
}The following parameters will be returned if the email is fetched from a Shared Mailbox:
- isSharedInbox: true
sharedInboxEmailInfo: {accId: <Long value like MSGID>}
The accId returned here will be used when you download an attachment from Shared Mailbox email using the Download Attachment SDK.
Sample Response - Default mail details for Delegated Mailbox emails
Copied{
"FROM": "rebecca@zylker.com",
"TO": ""Paula M"<paula@zylker.com>",
"CC": "",
"BCC":" ",
"ACCOUNT_ID": "5164940000000008001",
"MSGID": "3881227000005765001",
"SUBJECT": "Website Design",
"SM": "<p>Attached design ideas</p>",
"NEWATTR": "[ {"st": 0, "attType": 1, "e": "157742754265103002", "part": "1", "fn": "Sample_Name.PDF", "l": [], "fmt": "pdf", "fs": "1443832", "ft": 102, "et": 1, "p": "1", "inline": false, "size": "1443892", "u": "c6f059b0-2870-11ea-aea7-0cc47a81d49e", "appId": "0", "name": "Sample_Name.PDF", "tn": false, "Id": "137967203327290000", "id": "137967203327290000", "shT": 0, "gId": "688974046", "groupId": "688974046", "entityId": "1577427542651030001", "entityType": 1, "attachId": "137967203427290000"}]",
"CONTENT":"<meta /><div><div style="font-size: 12pt; font-family: Georgia, Times New Roman, Times, serif"><div>Hi Paula,<br /></div><div><br /></div><div>This is in continuation to our discussion about the upcoming website design.<br /></div><div><br /></div><div>I have attached with this email some design ideas that my team has come up with.<br /></div><div><br /></div><div><br /></div><div><br /></div><div>Regards<br /></div><div>Rebecca</div><div><br /></div></div><br /></div>",
"FOLDERNAME": "Inbox"
"SENTTIME": "Tue, 08 Sep 2026 22:42:40 +0530"
"PHONE_NUMBERS": ["", ""]
"isDelegatedMailbox": true
"shId": "12345678901234"
}The following parameters will be returned if the email is fetched from a Shared Mailbox:
- isDelegatedMailbox: true
shId: <Long value like MSGID>
The shId returned here will be used when you download an attachment from Shared Mailbox email using the Download Attachment SDK.