Send batch emails
documentedSend multiple emails in a single API call.
POST /email/batchEmailno 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/batch" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Postmark-Server-Token: {{POSTMARKAPP_API_KEY}}" \
-d '[{\n "From": "{{$from_email}}",\n "To": "{{$to_email_1}}",\n "Subject": "{{$subject_1}}",\n "TextBody": "{{$text_body_1}}",\n "HtmlBody": "{{$html_body_1}}",\n "MessageStream": "{{$message_stream_1}}",\n "Headers": [\n {"Name": "X-Custom-Header", "Value": "{{$custom_header_value}}"}\n ]\n },{\n "From": "{{$from_email}}",\n "To": "{{$to_email_2}}",\n "Subject": "{{$subject_2}}",\n "TextBody": "{{$text_body_2}}",\n "HtmlBody": "{{$html_body_2}}",\n "MessageStream": "{{$message_stream_2}}"\n }]'"