Create Template

postmark.create_template
ActionEmailconnection required

Calls the Postmark API with the connection's credentials.

Create a template on the server, with an HTML body, a text body or both.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Postmark
Secret shape
the server API token, or {"server_token": "…"}
Config it needs
message_stream, from_address, base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

6 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
name
Name of the template, as it appears in the Postmark UI.
stringYes———
subject
Subject line, with {{ placeholders }} the model fills in at send time.
stringNo———
html_body
HTML body of the template. Required unless a text body is given.
stringNo———
text_body
Plain-text body of the template. Required unless an HTML body is given.
stringNo———
alias
A stable alias to send by, so a workflow does not depend on the numeric id.
stringNo———
layout_template
Alias of a layout template to render this one inside.
stringNo———
  • At least one of html_body, text_body must be set.

Output

One shape.

result

FieldTypeExample
TemplateId
The new template's numeric Postmark id.
number—
Name
The name the template was created with.
string—
Alias
The alias the template was created with.
string—
Active
True while the template can be sent with.
boolean—
TemplateType
Standard for a sendable template.
string—
LayoutTemplate
The layout alias, when one was given.
string—
{
  "Active": false,
  "Alias": "",
  "LayoutTemplate": "",
  "Name": "",
  "TemplateId": 0,
  "TemplateType": ""
}

See Create Template run in a workflow.

In a technical demo we add the Postmark connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.