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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
name Name of the template, as it appears in the Postmark UI. | string | Yes | — | — | — |
subject Subject line, with {{ placeholders }} the model fills in at send time. | string | No | — | — | — |
html_body HTML body of the template. Required unless a text body is given. | string | No | — | — | — |
text_body Plain-text body of the template. Required unless an HTML body is given. | string | No | — | — | — |
alias A stable alias to send by, so a workflow does not depend on the numeric id. | string | No | — | — | — |
layout_template Alias of a layout template to render this one inside. | string | No | — | — | — |
- At least one of html_body, text_body must be set.
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
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.