Create Template
POSThttps://a.klaviyo.com/api/templates
Create a new HTML or drag-and-drop template.
If there are 1,000 or more templates in an account, creation will fail as there is a limit of 1,000 templates that can be created via the API.
Request specific fields using sparse fieldsets.
- Revision header
revision: 2026-10-15required- Scopes
templates:write- Rate limits
- Burst:
75/sSteady:750/m
Query parameters
Request additional fields not included by default in the response. Supported values: 'definition'
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-10-15
Request body
Content type: application/vnd.api+jsonrequired
Show 2 fields
Show 6 fields
The name of the template
Restricted to CODE, USER_DRAGGABLE, or SYSTEM_DRAGGABLE
The HTML contents of the template. Required for CODE/USER_DRAGGABLE; not allowed for SYSTEM_DRAGGABLE.
Show 4 fields
Show 4 fields
Show 7 fields
Show 3 fields
Show 5 fields
Show on.
Enter valid JSON. Until you do, the example request uses the example value.
Show 19 fields
Background format.
Background position.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Vertical alignment.
Stacking direction.
Content color type.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Show 4 fields
Show 4 fields
Enter valid JSON. Until you do, the example request uses the example value.
Option 1:
ButtonBlockV1Show 4 fields
Show 1 field
Enter valid JSON. Until you do, the example request uses the example value.
Show 25 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Option 2:
CouponBlockV1Show 4 fields
Enter valid JSON. Until you do, the example request uses the example value.
Show 30 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Option 3:
DropShadowBlockV1Show 2 fields
Enter valid JSON. Until you do, the example request uses the example value.
Show 7 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Shadow color.
Option 4:
HeaderBlockV1Show 2 fields
Enter valid JSON. Until you do, the example request uses the example value.
Show 30 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Header block desktop layout.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Header block item spacing type.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Header block mobile layout.
Enter a whole number. Until you do, the example request uses the example value.
Vertical alignment.
Option 2:
HeaderImageSubBlockEnter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Show on.
Enter a whole number. Until you do, the example request uses the example value.
Option 3:
HeaderLogoSubBlockEnter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Show on.
Enter a whole number. Until you do, the example request uses the example value.
Option 5:
HorizontalRuleBlockV1Show 2 fields
Enter valid JSON. Until you do, the example request uses the example value.
Show 9 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Option 6:
HTMLBlockV1Option 7:
ImageBlockV1Show 3 fields
Option 1:
StaticImageBlockPropertiesShow 7 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter valid JSON. Until you do, the example request uses the example value.
Show 20 fields
Image Alignment.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Option 8:
ProductBlockV1Show 3 fields
Option 1:
StaticProductBlockPropertiesEnter a whole number. Until you do, the example request uses the example value.
Option 2:
DynamicProductBlockPropertiesEnter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter valid JSON. Until you do, the example request uses the example value.
Show 78 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Product layout options.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Show 15 fields
Option 9:
ReviewBlockV1Show 3 fields
Option 1:
StaticReviewBlockPropertiesReview block verified badge language.
Enter a whole number. Until you do, the example request uses the example value.
Option 2:
DynamicReviewBlockPropertiesReview block verified badge language.
Review block fallback options for dynamic selection.
Review block fallback content type.
Review block product selection mode.
Enter valid JSON. Until you do, the example request uses the example value.
Show 54 fields
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Review block layout options.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a number. Until you do, the example request uses the example value.
Review block quote style.
Review block star size.
Review block star rating shape.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Review block verified badge color.
Enter a whole number. Until you do, the example request uses the example value.
Review block verified badge style.
Option 10:
SocialBlockV1Show 3 fields
Show 1 field
Enter valid JSON. Until you do, the example request uses the example value.
Show 16 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Social block icon color.
Social block icon size.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Option 1:
SocialIconSubBlockEnter a whole number. Until you do, the example request uses the example value.
Social block link type.
Option 11:
SpacerBlockV1Option 12:
SplitBlockV1Show 2 fields
Enter valid JSON. Until you do, the example request uses the example value.
Show 8 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Stacking direction.
Enter a whole number. Until you do, the example request uses the example value.
Option 1:
TableTextSubBlockText Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Show on.
Option 2:
TableImageSubBlockEnter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Image Alignment.
Show on.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Option 13:
TableBlockV1Show 3 fields
Option 2:
DynamicTableBlockPropertiesEnter a whole number. Until you do, the example request uses the example value.
Enter valid JSON. Until you do, the example request uses the example value.
Enter valid JSON. Until you do, the example request uses the example value.
Show 38 fields
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Vertical alignment.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Text Alignment.
Option 1:
TableHeaderSubBlockText Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Show on.
Option 2:
TableHtmlSubBlockEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
TableImageSubBlockEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
TableTextSubBlockEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
TableFallbackImageSubBlockEnter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Image Alignment.
Show on.
Text Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Option 7:
TableFallbackTextSubBlockText Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Show on.
Option 14:
TextBlockV1Show 3 fields
Enter valid JSON. Until you do, the example request uses the example value.
Show 25 fields
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a number. Until you do, the example request uses the example value.
Text Alignment.
Text table layout.
Option 15:
VideoBlockV1Show 3 fields
Enter valid JSON. Until you do, the example request uses the example value.
Show 19 fields
Image Alignment.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
When present, must contain exactly one of each style type.
Option 1:
BaseStyleShow 15 fields
Background format.
Background position.
Enter a whole number. Until you do, the example request uses the example value.
Border style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Option 2:
TextStyleV1Show 11 fields
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a number. Until you do, the example request uses the example value.
Text Alignment.
Option 3:
Heading1StyleShow 12 fields
Enter a whole number. Until you do, the example request uses the example value.
Font style.
Enter a whole number. Until you do, the example request uses the example value.
Enter a number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a number. Until you do, the example request uses the example value.
Text Alignment.
Option 8:
MobileStyleShow 1 field
Show 7 fields
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
The plaintext version of the template
The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at Send AMP emails in Klaviyo Not allowed for SYSTEM_DRAGGABLE.
Responses
201Success
Content type: application/vnd.api+json
Show 4 fields
The ID of template
Show 9 fields
The name of the template
editor_typehas a fixed set of values:- SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template
- SIMPLE: A rich text editor template
- CODE: A custom HTML template
- USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor
The rendered HTML of the template
The template plain_text
The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at Send AMP emails in Klaviyo
The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
A presigned URL to an image of the rendered template, valid for 24 hours.
nullwhen no screenshot is currently available for the template.Show 4 fields
Show 4 fields
Show 7 fields
Show 3 fields
Show 19 fields
Background format.
Background position.
Border style.
Vertical alignment.
Stacking direction.
Content color type.
Show 4 fields
Show 4 fields
Option 1:
ButtonBlockV1Show 4 fields
Show 1 field
Show 25 fields
Border style.
Font style.
Text Alignment.
Option 2:
CouponBlockV1Show 4 fields
Show 30 fields
Border style.
Font style.
Text Alignment.
Option 3:
DropShadowBlockV1Show 2 fields
Option 4:
HeaderBlockV1Show 2 fields
Show 30 fields
Border style.
Header block desktop layout.
Font style.
Text Alignment.
Header block item spacing type.
Text Alignment.
Header block mobile layout.
Vertical alignment.
Option 5:
HorizontalRuleBlockV1Show 2 fields
Show 9 fields
Border style.
Option 7:
ImageBlockV1Show 3 fields
Option 1:
StaticImageBlockProperties
Show 20 fields
Image Alignment.
Border style.
Option 8:
ProductBlockV1Show 3 fields
Option 1:
StaticProductBlockPropertiesOption 2:
DynamicProductBlockProperties
Show 78 fields
Text Alignment.
Border style.
Font style.
Font style.
Border style.
Text Alignment.
Product layout options.
Font style.
Font style.
Font style.
Font style.
Show 15 fields
Option 9:
ReviewBlockV1Show 3 fields
Option 1:
StaticReviewBlockPropertiesReview block verified badge language.
Option 2:
DynamicReviewBlockPropertiesReview block verified badge language.
Review block fallback options for dynamic selection.
Review block fallback content type.
Review block product selection mode.
Show 54 fields
Text Alignment.
Font style.
Border style.
Review block layout options.
Text Alignment.
Font style.
Text Alignment.
Font style.
Review block quote style.
Review block star size.
Review block star rating shape.
Text Alignment.
Font style.
Review block verified badge color.
Review block verified badge style.
Option 10:
SocialBlockV1Show 3 fields
Show 1 field
Show 16 fields
Text Alignment.
Social block icon color.
Social block icon size.
Font style.
Option 12:
SplitBlockV1Show 2 fields
Show 8 fields
Stacking direction.
Option 1:
TableTextSubBlockText Alignment.
Font style.
Show on.
Option 2:
TableImageSubBlockImage Alignment.
Show on.
Text Alignment.
Option 13:
TableBlockV1Show 3 fields
Show 38 fields
Border style.
Border style.
Vertical alignment.
Border style.
Font style.
Text Alignment.
Option 1:
TableHeaderSubBlockText Alignment.
Font style.
Show on.
Option 2:
TableHtmlSubBlockOption 3:
TableImageSubBlockOption 4:
TableTextSubBlockOption 6:
TableFallbackImageSubBlockImage Alignment.
Show on.
Text Alignment.
Option 7:
TableFallbackTextSubBlockText Alignment.
Font style.
Show on.
Option 14:
TextBlockV1Show 3 fields
Show 25 fields
Border style.
Font style.
Text Alignment.
Text table layout.
Option 15:
VideoBlockV1Show 3 fields
Show 19 fields
Image Alignment.
Border style.
When present, must contain exactly one of each style type.
Option 1:
BaseStyleShow 15 fields
Background format.
Background position.
Border style.
Option 2:
TextStyleV1Show 11 fields
Font style.
Text Alignment.
Option 3:
Heading1StyleShow 12 fields
Font style.
Text Alignment.
Option 8:
MobileStyleShow 1 field
Show 1 field
Response-level metadata
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json