Skip to Content

The MailTemplateRender type of the TypeScript SDK, which templates.render take or answer.

type MailTemplateRender = {
  html: string | null
  langUsed: string
  slug: string
  source: ('stored' | 'draft')
  subject: string
  templateVersion: number
  text: string
  variables: MailTemplateVariable[]
}

Fields

FieldTypeDescription
htmlstring | null
langUsedstring
slugstring
source('stored' | 'draft')draft when the call carried copy to preview, stored when it rendered the template's own copy
subjectstring
templateVersionnumber
textstring
variablesMailTemplateVariable[]

Used by

MethodWhat it does
templates.renderRender a template without sending it

On this page