Get a Specific Draft

Purpose

This API is used to retrieve a specific draft in the account using the draftId.

OAuth Scope

Use the scope

MailApps.messages.ALL (or) MailApps.messages.READ

ALL - Full access to the messages.

READ - Read a draft.

To generate Authtoken, refer here.

Request URL

Method : GET

https://mail360.zoho.com/api/accounts/{account_key}/drafts/{draftId}

Path Parameters

  • account_key* string
    • This is a unique key used to identify the account from which the draft has to be retrieved. It is generated during account addition.
    • This parameter can be retrieved using the Get All Accounts API.
  • draftId* long
    • This is the unique key to identifying a specific draft in the account.
    • This parameter can be retrieved using the Get all drafts API.

 

* - Mandatory parameter

Sample Request

Copiedcurl "https://mail360.zoho.com/api/accounts/N7A**0CM/drafts/167594940852211****" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken ***" \

Sample Response

Copied{
   "status": {
      "code": 200,
      "description": "success"
   },
   "data": {
      "fromAddress": "rebecca1@zylker.com",
      "toAddress": "<rebecca2@zylker.com>",
      "ccAddress": "<paul1@zylker.com>",
      "bccAddress": "<paul2@zylker.com>",
      "draftId": "1674571936262110001",
      "folderId": "23450000000003003",
      "sender": "rebecca1@zylker.com",
      "summary": "",
      "status": "1",
      "subject": "new Mail testing",
      "size": "293",
      "receivedTime": "1674572433997",
      "sentDateInGMT": "1674552633000",
      "flagid": "flag_not_set",
      "hasAttachment": 0
   }
}