HomeGuidesAPI Reference
ChangelogHelp CenterCommunityContact Us
API Reference
These docs are for a deprecated API version. Click here to use the latest version.

Renders the specified template with the provided data and send the contents in an email via the service specified. This API is intended to test templates only, and is rate limited to the following thresholds: 100/hour, 1,000/day.

🚧

Deprecation Notice

This endpoint is being deprecated and we are no longer verifying accounts for this functionality. To achieve similar functionality, create a metric-triggered flow, then send one or more Track API calls.

Path Params
string
required
Defaults to TEMPLATE_ID
Form Data
string
required
Defaults to george.washington@klaviyo.com
string
required
Defaults to George Washington
string
required
Defaults to Happy Fourth!
blob
required
Defaults to [{"name":"Abraham Lincoln","email":"abraham.lincoln@klaviyo.com"}]

Mixed. string, or JSON encoded array of objects with "email" and "name" keys.
abraham.lincoln@klaviyo.com
OR
[{"name":"Abraham Lincoln","email":"abraham.lincoln@klaviyo.com"}]

blob
Defaults to { "name" : "George Washington", "state" : "VA" }

Optional, JSON object.
This is the context your email template will be rendered with. Email templates are rendered with contexts in a similar manner to how Django templates are rendered. This means that nested template variables can be referenced via dot notation and template variables without corresponding context values are treated as falsy and output nothing.
ex: { "name" : "George Washington", "state" : "VA" }

Response

Language
Credentials