email templates

Add Email Template

Create a new email template in your CPaaS account.

post/mailagents/{mailagent-alias}/templates

Request

  • Base URL
    https://cpaas.zoho.com/v1.1
  • Auth
    • OAuth 2
      Authorization code: https://accounts.zoho.com/oauth/v2/auth
      Token URL: https://accounts.zoho.com/oauth/v2/token scopes: Zeptomail.MailTemplates.CREATE
    • or OAuth 2
      Authorization code: https://accounts.zoho.com/oauth/v2/auth
      Token URL: https://accounts.zoho.com/oauth/v2/token scopes: Zeptomail.MailTemplates.ALL

Path parameters

mailagent-aliasstring required
Example:your-mailagent-alias

Unique alias of the Mail Agent.

Request body

htmlbodystring required

HTML content of the email template.

template_namestring required

Display name of the email template.

subjectstring required

Subject line of the email template.

template_aliasstring

Custom alias for the template. Used as an alternative to template_key.

Example request

{
  "htmlbody": "<h1> Hi User </h1>, Welcome aboard",
  "template_name": "E-invite",
  "subject": "Invitation to the event",
  "template_alias": "invitemail"
}

Response

Template created successfully.

statusstring

Example response

{
  "data": {
    "template_key": "1234567890",
    "template_name": "E-invite",
    "subject": "Invitation to the event",
    "template_alias": "invitemail"
  },
  "status": "success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.