Email Templates

Preview a rendered email template

Renders the template with the same renderer the runtime uses. Supplying a personRowId interpolates that Person's values.

post/public/v1/email-templates/{templateId}/preview

Path parameters

templateIdinteger required
Example:1

Request body

personRowIdstring

Example request

{
  "personRowId": "example"
}

Response

Rendered email

subjectstring required
htmlstring required
textstring required
personRowIdstring nullable required
unresolvedVariablesstring[] required

Example response

{
  "subject": "example",
  "html": "example",
  "text": "example",
  "personRowId": "example",
  "unresolvedVariables": [
    "example"
  ]
}

Changes

Changed in 1 of the 2 revisions of this API.1