HomeGuidesAPI Reference
ChangelogHelp CenterCommunityContact Us
API Reference

Create Template

Create a new custom HTML 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.

Rate limits:
Burst: 10/s
Steady: 150/m

Scopes:
templates:write

Body Params
object
required
string
required
object
required
string
required

The name of the template

string
required

Restricted to CODE and USER_DRAGGABLE

string

The HTML contents of the template

string

The plaintext version of the template

string

The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo

Headers
string
required
Defaults to 2025-01-15

API endpoint revision (format: YYYY-MM-DD[.suffix])

Responses

Language
Credentials