Skip to main content
POST
/
api
/
v1
/
admin
/
email
/
templates
/
render
Render Email Template
curl --request POST \
  --url https://api.example.com/api/v1/admin/email/templates/render \
  --header 'Content-Type: application/json' \
  --data '
{
  "template_type": "<string>",
  "variables": {},
  "locale": "en",
  "account_id": "<string>",
  "subject": "<string>",
  "html_body": "<string>",
  "text_body": "<string>"
}
'
{
  "subject": "<string>",
  "html_body": "<string>",
  "text_body": "<string>"
}

Headers

authorization
string | null

Body

application/json

Request schema for rendering a template without sending.

Attributes: template_type: Template type to render (e.g., 'email_verification'). variables: Dictionary of variables for template rendering. locale: Optional language/locale code (default: 'en'). account_id: Optional account ID for template lookup.

template_type
string
required
variables
Variables · object
required
locale
string
default:en
account_id
string | null
subject
string | null
html_body
string | null
text_body
string | null

Response

Successful Response

Response schema for rendered template content.

Attributes: subject: Rendered subject line. html_body: Rendered HTML body. text_body: Rendered plain text body.

subject
string
required
html_body
string
required
text_body
string
required