v1

latestSwagger 2.02026-07-13434569.6 KB
Templates API

Create a Template

post/templates

Headers

X-Postmark-Server-Tokenstring required

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

Request body

Aliasstring

The optional string identifier for referring to this Template (numbers, letters, and '.', '-', '_' characters, starts with a letter).

Namestring required

The friendly display name for the template.

Subjectstring required

The Subject template definition for this Template.

HtmlBodystring

The HTML template definition for this Template.

TextBodystring

The Text template definition for this Template.

Response

OK

Namestring

The display name for this template.

Aliasstring

The user-supplied alias for this template.

TemplateIdnumber

The associated ID for this template.

Activeboolean

True if this template is currently available for use.