Skip to main content
POST
Create EmailTemplateFile
An email template override defines the subject, body, and optional sender or copy recipients for an automated message at one location in one configured language; built-in files are used when no override is saved.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the EmailTemplateFile-Create role.

Enums

Request Body

Required Fields

integer
required
ID of the location whose automated email template this record overrides..
integer
required
Obsolete legacy language enum; use FileLanguage to select the configured location language instead..
string
required
Built-in email message identifier this record overrides, such as the identifier for a welcome, invoice, booking confirmation, or reminder email; required and limited to 254 characters..
string
required
Required email subject line, up to 254 characters; supported message tokens are replaced before the email is queued..

Optional Fields

integer
ID of the configured location language for this template override; together with Name and Business it identifies the saved template..
string
Email body content for this location and language; supported message tokens are replaced before the email is queued..
string
Optional Unlayer design JSON used to continue visual editing; FileContents remains the exported HTML used for delivery..
boolean
Whether this template is marked as text-only; the current message dispatch path stores and transfers this flag without using it to transform the body..
string
Optional sender display name passed to email delivery, limited to 254 characters..
string
Optional sender email address passed to email delivery, limited to 254 characters..
string
Optional carbon-copy recipient email address passed to email delivery, limited to 254 characters..
string
Optional blind-carbon-copy recipient email address passed to email delivery, limited to 254 characters..

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the emailtemplatefile was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response