POST - Save Draft / Template
Purpose
The API is used to save content either as a draft or as a template.
Request URL
https://mail.zoho.com/api/accounts/<accountId>/messages
Request Parameters
Parameter | Data Type | Description |
accountId* | Long | The unique Zoho Account identifier associated with the particular account. |
Request Body (JSON Object)
Parameter | Data Type | Allowed Values | Description |
fromAddress* | String | Email Address | Sender's email address for the From field (associated to the authenticated account) |
toAddress* | String | Email Address | Recipient email address for the To field |
mode* | String |
| Whether the content should be saved as a draft or a template |
content | String | Email content | The content that should be saved as a draft or template |
ccAddress | String | Email address | Recipient email address for the Cc field |
bccAddress | String | Email address | Recipient email address for the Bcc field |
subject | String | Email subject | Subject of the email that should be sent |
encoding | String |
| The encoding which should be used in the email content. The default value is UTF-8. |
mailFormat | String |
| Whether the email should be sent in HTML format or in plain text. The default value is html |
askReceipt | Boolean |
| Whether an email receipt is necessary when the draft or the template is sent |
* - Mandatory parameters
Response Codes
Please refer Response Codes.
Sample Request
Copied{
"mode": "draft",
"subject": "Regd. Marketing Brochures",
"fromAddress": "rebecca@zylker.com",
"mailFormat": "html",
"toAddress": "justinc@zylker.com",
"content": "Hi Justin, please share the brochure content with the marketing team before proceeding with it. Thanks."
}