API ReferenceTemplate
Template
Email and SMS message templates used by verification, recovery, invitation, and MFA flows.
Template
TemplateService manages the text of every transactional message the platform sends: email verification, password recovery, organization invitations, MFA codes, magic-link login. Each template has a type, a locale, and a per-organization override chain -- org overrides fall back to tenant defaults fall back to platform defaults.
Base URL: https://<Domain id="api"/>
Authentication: Bearer token with template:write for CRUD, :read for fetches, :preview for Preview/Duplicate.
Sub-sections
| Area | RPCs |
|---|---|
| Email templates | Get / List / Create / Update / Delete |
| SMS templates | Get / List / Create / Update / Delete |
| Preview & duplicate | PreviewTemplate, DuplicateTemplate |
Template variables
Templates use Handlebars. Common variables:
{{identity.first_name}},{{identity.email}}{{organization.name}},{{organization.logo_url}}{{link}}(verification / recovery / invite URL){{code}}(OTP / MFA code){{expires_in_minutes}}
Full variable reference per template type: Email event catalog.