Skip to main content
POST
Render a template

Authorizations

Authorization
string
header
required

Your API key, ps_live_… or ps_test_….

Path Parameters

template
string
required

The template slug, or its ID prefixed tpl_.

Body

application/json
data
object

The variables, as you would send them.

Example:
version
integer

A published version to render instead of the draft.

Example:

3

Response

200 - application/json
object
string
required
Allowed value: "rendered_template"
version
required
subject
string
required
html
string
required
text
string
required
from
string | null
required