Render and Send Template
documentedRender a template and send it as a campaign message.
POST /api/email-templates/{template_id}/render-and-sendTemplatesno implementation yet0 runsNo 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/template-render" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-d '{"template_id": "{{$template_id}}", "attributes": {"context": {{$context}}, "return_fields": "amp,html,text"}}'