post https://a.klaviyo.com/api/v1/email-templates
Creates a new email template.
Response
Creates a new email template.
xxxxxxxxxx
curl --request POST \
--url 'https://a.klaviyo.com/api/v1/email-templates?api_key=PRIVATE_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'name=New Template Name' \
--data 'html=<html><body><p>This is an email for {{ email }}.</p></body></html>'
xxxxxxxxxx
{
"object": "email-template",
"id": "TEMPLATE_ID",
"name": "TEMPLATE_NAME",
"html": "<html><head></head><body><p>Some Text</p></body></html>",
"is_writeable": true,
"created": "2021-11-18 03:43:51",
"updated": "2021-11-18 03:43:51"
}