Skip to main content
POST
/
v1
/
templates
/
{slug}
/
render
Render a template
curl --request POST \
  --url https://senderkit.com/api/v1/templates/{slug}/render \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "vars": {
    "name": "Ada"
  }
}
'
{
  "output": {},
  "missing": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.senderkit.com/llms.txt

Use this file to discover all available pages before exploring further.

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
output
object
required

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

missing
string[]
required

Variable paths referenced by the template but not supplied.