v1

latestSwagger 2.02026-07-13434569.6 KB
Sending API
Templates API

Send an email using a Template

post/email/withTemplate

Headers

X-Postmark-Server-Tokenstring required

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

Request body

TemplateIdinteger required

Required if 'TemplateAlias' is not specified.

TemplateAliasstring required

Required if 'TemplateId' is not specified.

TemplateModelobject required
InlineCssboolean
Fromstring email required
Tostring email required
Ccstring email
Bccstring email
Tagstring
ReplyTostring
TrackOpensboolean

Activate open tracking for this email.

TrackLinks'None' | 'HtmlAndText' | 'HtmlOnly' | 'TextOnly'

Replace links in content to enable "click tracking" stats. Default is 'null', which uses the server's LinkTracking setting'.

Response

OK

Tostring
SubmittedAtstring date-time
MessageIDstring
ErrorCodeinteger
Messagestring