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, anaudience(the kind of recipient), theparamsit accepts, anexampleof parameter values, and the placeholdersyntaxper 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
- email API reference: every method and type.
- Errors and retries
Last updated on