Skip to navigation

Create an email template

Create a TRIGGER or LAYOUT email template for the organization specified in organization_id. Authenticate with the House of Apps AI key (House-Of-Apps-Ai-Key).

Headers

House-Of-Apps-Ai-KeystringRequired
House of Apps AI integration API key

Request

This endpoint expects an object.
namestringRequired1-200 characters
template_typeenumRequired

Email template kind: full layout shell or trigger body fragment.

Allowed values:
html_contentstringRequired>=1 character
organization_idstringRequired>=1 character
Target organization UUID
idstring or nullOptional

Optional client-provided template UUID; server-generated when omitted

subjectstring or nullOptional<=500 characters

Plain email subject line (no variable placeholders)

variableslist of objectsOptional
statusenumOptional

Email template publish state (enforced in API; stored as text in DB).

Allowed values:
is_defaultbooleanOptionalDefaults to false
When true on a LAYOUT, marks the org default shell used by TRIGGER render

Response

Created
statusstring
Response status
messagestring

Human-readable success message

statusCodeinteger
HTTP status code
codestring
Custom application status code
datamap from strings to any or list of any or string or double or boolean or nullOptional
Payload for this endpoint

Errors

422
Unprocessable Entity Error