Validate Template
postmark.validate_template
ActionEmailconnection required
Calls the Postmark API with the connection's credentials.
Render template content against a test model without storing it, and report the placeholders Postmark could not resolve.
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
4 fields, none 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 |
|---|---|---|---|---|---|
subject Subject line to validate and render. | string | No | — | — | — |
html_body HTML body to validate and render. | string | No | — | — | — |
text_body Plain-text body to validate and render. | string | No | — | — | — |
test_render_model The model to render the content against, as JSON. | object | No | — | — | — |
- At least one of subject, html_body, text_body must be set.
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
valid True when every piece of content rendered without an error. | boolean | — |
AllContentIsValid Postmark's own overall verdict. | boolean | — |
Subject ContentIsValid, ValidationErrors and RenderedContent for the subject. | object | — |
HtmlBody ContentIsValid, ValidationErrors and RenderedContent for the HTML body. | object | — |
TextBody ContentIsValid, ValidationErrors and RenderedContent for the text body. | object | — |
SuggestedTemplateModel A model shaped like the placeholders the content actually uses. | object | — |
{
"AllContentIsValid": false,
"HtmlBody": {},
"Subject": {},
"SuggestedTemplateModel": {},
"TextBody": {},
"valid": false
}See Validate 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.