Create a template
https://email.growthdept.ai/api/templatesCreates an HTML template (editor_type CODE) or a drag-and-drop one (SYSTEM_DRAGGABLE with a definition; without one it starts from the account's brand kit).
Ask for definition with additional-fields[template]; they are left out unless you do.
The request body can be up to 5 MB.
Rate limits
Scopes
templates:write
Operation id
create_template The same operation as in Klaviyo's API. OpenAPI document
Query parameters
Pick values to add them to the request:
Pick values to add them to the request:
Body
Send application/vnd.api+json or application/json.
object
dataobjectrequired
data: 5 fields
typestringrequired
templateidstring
attributesobjectrequired
attributes: 6 fields
namestringrequired
editor_typestringrequired
htmlstringcan be null
textstringcan be null
ampstringcan be null
definitionobject
relationshipsobject
metaobject
Edit the example. The code samples use what you type here.
Headers
stringrequireddefault 2026-10-15
API revision, YYYY-MM-DD. This server implements 2026-10-15.
Responses
201Success
Response body
object
dataobjectrequired
data: 4 fields
typestringrequired
templateidstringrequired
attributesobjectrequired
attributes: 9 fields
namestringrequired
editor_typestringrequired
htmlstringrequired
textstringcan be null
ampstringcan be null
createdstring (date-time)can be null
updatedstring (date-time)can be null
screenshot_urlstringcan be null
definitionobjectcan be null
definition: 4 fields
idstringcan be null
template_idstringcan be null
bodyobjectrequired
body: 4 fields
idstringcan be null
propertiesobjectrequired
properties: 2 fields
idstringcan be null
css_classstringcan be null
stylesobjectrequired
styles: 2 fields
background_colorstringcan be null
widthintegercan be null
sectionsarray of objectscan be null
sections: 7 fields
idstringcan be null
data_idstringcan be null
universal_idstringcan be null
content_typestringrequired
sectiontypestringrequired
sectiondataobjectrequired
data: 3 fields
propertiesobjectrequired
display_optionsobjectrequired
stylesobjectrequired
rowsarray of objectscan be null
rows: 4 fields
idstringcan be null
data_idstringcan be null
dataobjectrequired
columnsarray of objectscan be null
stylesarray of objectsrequired
One option: BaseStyle
idstringcan be null
style_typestringrequired
base-stylespropertiesobjectrequired
properties: 6 fields
currencystringcan be null
currency_set_on_templatebooleancan be null
disable_websafe_fontsbooleancan be null
is_user_draggablebooleancan be null
mobile_optimizationsbooleancan be null
tip_tap_enabledbooleancan be null
stylesobjectrequired
styles: 15 fields
background_asset_idstringcan be null
background_formatstringcan be null
autocontaincoverinitialrepeatbackground_positionstringcan be null
center-bottomcenter-centercenter-topleft-bottomleft-centerleft-topright-bottomright-centerright-topbackground_repeatbooleancan be null
background_urlstringcan be null
border_colorstringcan be null
border_radiusintegercan be null
border_stylestringcan be null
dasheddottedgrooveinsetnoneoutsetridgesolidborder_widthintegercan be null
content_background_colorstringcan be null
inner_padding_bottomintegercan be null
inner_padding_leftintegercan be null
inner_padding_rightintegercan be null
inner_padding_topintegercan be null
margin_topintegercan be null
One option: TextStyleV1
idstringcan be null
style_typestringrequired
text-stylesstylesobjectrequired
styles: 11 fields
colorstringcan be null
font_familystringcan be null
font_sizeintegercan be null
font_stylestringcan be null
italicnormalfont_weightstringcan be null
letter_spacingintegercan be null
line_heightnumbercan be null
mobile_font_sizeintegercan be null
mobile_line_heightnumbercan be null
text_alignstringcan be null
centerleftrighttext_decorationstringcan be null
One option: Heading1Style
idstringcan be null
style_typestringrequired
heading-1-stylesstylesobjectrequired
styles: 12 fields
colorstringcan be null
font_familystringcan be null
font_sizeintegercan be null
font_stylestringcan be null
italicnormalfont_weightstringcan be null
letter_spacingintegercan be null
line_heightnumbercan be null
margin_bottomintegercan be null
mobile_font_sizeintegercan be null
mobile_line_heightnumbercan be null
text_alignstringcan be null
centerleftrighttext_decorationstringcan be null
One option: Heading2Style
idstringcan be null
style_typestringrequired
heading-2-stylesstylesobjectrequired
styles: 12 fields
colorstringcan be null
font_familystringcan be null
font_sizeintegercan be null
font_stylestringcan be null
italicnormalfont_weightstringcan be null
letter_spacingintegercan be null
line_heightnumbercan be null
margin_bottomintegercan be null
mobile_font_sizeintegercan be null
mobile_line_heightnumbercan be null
text_alignstringcan be null
centerleftrighttext_decorationstringcan be null
One option: Heading3Style
idstringcan be null
style_typestringrequired
heading-3-stylesstylesobjectrequired
styles: 12 fields
colorstringcan be null
font_familystringcan be null
font_sizeintegercan be null
font_stylestringcan be null
italicnormalfont_weightstringcan be null
letter_spacingintegercan be null
line_heightnumbercan be null
margin_bottomintegercan be null
mobile_font_sizeintegercan be null
mobile_line_heightnumbercan be null
text_alignstringcan be null
centerleftrighttext_decorationstringcan be null
One option: Heading4Style
idstringcan be null
style_typestringrequired
heading-4-stylesstylesobjectrequired
styles: 12 fields
colorstringcan be null
font_familystringcan be null
font_sizeintegercan be null
font_stylestringcan be null
italicnormalfont_weightstringcan be null
letter_spacingintegercan be null
line_heightnumbercan be null
margin_bottomintegercan be null
mobile_font_sizeintegercan be null
mobile_line_heightnumbercan be null
text_alignstringcan be null
centerleftrighttext_decorationstringcan be null
One option: LinkStyle
idstringcan be null
style_typestringrequired
link-stylesstylesobjectrequired
styles: 4 fields
colorstringcan be null
font_stylestringcan be null
italicnormalfont_weightstringcan be null
text_decorationstringcan be null
One option: MobileStyle
idstringcan be null
style_typestringrequired
mobile-stylespropertiesobjectrequired
properties: 1 field
mobile_padding_overridebooleancan be null
stylesobjectrequired
styles: 7 fields
mobile_block_padding_leftintegercan be null
mobile_block_padding_rightintegercan be null
mobile_marginintegercan be null
mobile_padding_bottomintegercan be null
mobile_padding_leftintegercan be null
mobile_padding_rightintegercan be null
mobile_padding_topintegercan be null
linksobjectrequired
links: 1 field
selfstring (uri)required
linksobject
links: 1 field
selfstring (uri)required
metaobject
4XXClient error
Response body
object
errorsarray of objectsrequired
errors: 8 fields
idstringrequired
statusintegerrequired
codestringrequired
titlestringrequired
detailstringrequired
sourceobject
source: 2 fields
pointerstring
parameterstring
linksobject
metaobject
See status codes for each code.
5XXServer error
Response body
object
errorsarray of objectsrequired
errors: 8 fields
idstringrequired
statusintegerrequired
codestringrequired
titlestringrequired
detailstringrequired
sourceobject
source: 2 fields
pointerstring
parameterstring
linksobject
metaobject