v1

latestSwagger 2.02026-07-13434569.6 KB
Templates API

Test Template Content

post/templates/validate

Headers

X-Postmark-Server-Tokenstring required

The token associated with the Server on which this request will operate.

Request body

Subjectstring

The subject content to validate. Must be specified if HtmlBody or TextBody are not. See our template language documentation for more information on the syntax for this field.

HtmlBodystring

The html body content to validate. Must be specified if Subject or TextBody are not. See our template language documentation for more information on the syntax for this field.

TextBodystring

The text body content to validate. Must be specified if HtmlBody or Subject are not. See our template language documentation for more information on the syntax for this field.

TestRenderModelobject

The model to be used when rendering test content.

InlineCssForHtmlTestRenderboolean

When HtmlBody is specified, the test render will have style blocks inlined as style attributes on matching html elements. You may disable the css inlining behavior by passing false for this parameter.

Response

OK

AllContentIsValidboolean
SuggestedTemplateModelobject