Skip to main content
Version: v3New

Create an email template

POST 

/emails/locations/:locationId/templates

Create a new email template

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location ID

application/json

Bodyrequired

    namestringrequired

    Template name

    editorTypestringrequired

    Editor type for the new template. Use html for code-editor templates or text for plain-text templates.

    Available optionshtmltext
    editorContentstring

    Optional initial editor content. Provide HTML or plain-text string content.

    parentFolderIdstring

    Parent folder ID

    subjectLinestring

    Email subject line

    fromNamestring

    Sender name

    fromEmailstring

    Sender email address

    previewTextstring

    Preview text

    userIdstring

    ID of the user performing this action

application/json

Success

Schema
    idstringrequired

    Template ID

    namestringrequired

    Template name

    editorTypestringrequired

    Editor type

    Available optionshtmltext
    isPlainTextbooleanrequired

    Whether template is plain text

    parentFolderIdstring

    Parent folder ID

    fromNamestring

    Sender name

    fromEmailstring

    Sender email address

    subjectLinestring

    Email subject line

    previewTextstring

    Preview text

    previewUrlstring

    Preview URL

    createdAtstring

    Created timestamp

    updatedAtstring

    Updated timestamp

    traceIdstring

    Trace ID of request