Namespaces

ovok.email

List the project's email templates.

  • Stable unknown
  • Release candidate since 0.4.49-rc.4
  • Development since 0.4.49-dev.517+4645a0a

Email settings of the project. Today it exposes the template list, which shows what each template needs.

List email templates

const { templates } = await ovok.email.templates.list();

for (const template of templates) {
  console.log(template.name, template.audience, template.params);
}
  • Each template has a name, an audience (the kind of recipient), the params it accepts, an example of parameter values, and the placeholder syntax per email provider.
  • Calls GET v1/email/templates. It needs a signed-in user.
  • It lists templates only. It does not send email or change a template.

Reference

Last updated on

On this page