Sign in

Render Template

documented

Render a template with provided data.

POST /api/email-templates/{template_id}/renderTemplatesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://a.klaviyo.com/api/v1/email-template/{{$template_id}}/render" \
  -X POST \
  -H "Authorization: Klaviyo-API-Key {{KLAVIYO_API_KEY}}" \
  -H "Accept: application/vnd.api+json" \
  -H "Content-Type: application/vnd.api+json" \
  -H "revision: 2026-01-15" \
  -d '{"data": {"type": "template", "id": "{{$template_id}}", "attributes": {"context": {"first_name": "{{$first_name}}", "last_name": "{{$last_name}}", "discount_code": "{{$discount_code}}", "order_total": {{$order_total}}}}}}'
Render Template · Klaviyo · OpenIntegrations