Email templates

Create an email template

post/businesses/{id}/email_templates

Path parameters

idstring required

The ID of the business

Request body

OR
OR
OR

Response

The created EmailTemplate object

idstring required

The ID of the email template

namestring required

The name of the email template

subjectstring required

The subject of the email template. Variables are supported via {{ variableName }}

bodystring nullable required

(Deprecated) The body of the email template. Always null since there are no plaintext emails

kind'html' | 'unlayer' | 'old_editor' | 'editor' required

The kind of the email template

template_htmlstring nullable required

The HTML representation of the rich text email. May be null

{"stackTrail":"components:schemas:EmailTemplate:properties:template_json","oasType":"schema","type":"unknown","description":"The JSON representing the rich text email template. May be null","nullable":true}
{"stackTrail":"components:schemas:EmailTemplate:properties:new_template_json","oasType":"schema","type":"unknown","description":"The new unlayer JSON template. May be null","nullable":true}
new_template_htmlstring nullable required

The new unlayer HTML template. May be null

metadataobject required

Arbitrary metadata associated with this email template

created_atstring required

The time when the email template was created in ISO 8601 format

enabled_atstring nullable

The time when the email template was enabled in ISO 8601 format

Changes

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