Sign in

Create a template

documented

Create a new server-scoped template.

POST /templatesTemplatesno 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://api.postmarkapp.com/templates" \
  -X POST \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "X-Postmark-Server-Token: {{POSTMARKAPP_API_KEY}}" \
  -d '{"Name": "{{$template_name}}", "Alias": "{{$template_alias}}", "HtmlBody": "<html><body>Hello {{$subscriber_name}}!</body></html>", "TextBody": "Hello, {{$subscriber_name}}", "Subject": "{{$subject}}", "TemplateType": "{{$template_type}}", "LayoutTemplate": "{{$layout_alias}}"}'