Send batch with templates
documentedSend a batch of messages using templates for per-recipient TemplateModel data.
POST /email/batchWithTemplatesTemplatesno 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://api.postmarkapp.com/email/batchWithTemplates" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Postmark-Server-Token: {{POSTMARKAPP_API_KEY}}" \
-d '{"Messages": [
{"From": "{{$from}}", "To": "{{$to1}}", "TemplateAlias": "{{$templateAlias1}}", "TemplateModel": {{$templateModel1}}, "MessageStream": "broadcasts"},
{"From": "{{$from}}", "To": "{{$to2}}", "TemplateAlias": "{{$templateAlias2}}", "TemplateModel": {{$templateModel2}}, "MessageStream": "broadcasts"}
]}'