Skip to main content
POST
Render a template

Authorizations

Authorization
string
header
required

API key with an sk_live_ or sk_test_ prefix.

Path Parameters

slug
string
required

Template slug.

Body

application/json
vars
object

Variable values to interpolate into the template.

Response

Rendered template output.

channel
enum<string>
required
Available options:
email,
sms,
push,
web-push
output
object
required

Rendered fields for the channel. Email -> {subject, preheader, html, text}; SMS -> {body}; push -> {title, body, data, badge, sound}; web push -> {title, body, icon, clickUrl, data, badge}.

missing
string[]
required

Variable paths referenced by the template but not supplied.