Design reusable message templates for email, SMS, WhatsApp, and push notifications. Support for dynamic variables, conditional blocks, multi-language content, and rich media.
Rich HTML/CSS email templates with drag-and-drop editor support. Responsive layouts, dynamic variables, and conditional blocks.
Plain text and rich media templates for SMS and WhatsApp. Character count tracking, emoji support, and link shortening.
Mobile and web push templates with rich media (images, videos), action buttons, and deep links. Cross-platform support.
Create templates in 250+ languages with automatic fallback to default language. RTL support for Arabic, Hebrew, and Persian.
Insert user data with {{variables}}, conditional blocks (if/else), loops, date formatting, and custom filters. Handlebars syntax.
/templatesCreate a new template (email, SMS, WhatsApp, push)
/templatesList all templates with filtering by type
/templates/:idGet template details and content
/templates/:idUpdate template content or metadata
/templates/:id/translationsAdd translation for a specific language
/templates/:id/previewRender template with sample data for preview
/templates/:id/duplicateClone a template with a new name
/templates/:idDelete a template (soft delete)
POST https://api.eventzr.com/amplify/v1/templates
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"name": "Event Invitation",
"type": "email",
"subject": "You're invited to {{event.name}}!",
"html": "<html><body><h1>Hi {{user.first_name}},</h1><p>You're invited to <strong>{{event.name}}</strong> on {{event.date | date:'MMM D, YYYY'}}.</p>{{#if user.vip_status}}<p class='vip'>VIP access included!</p>{{/if}}<a href='{{event.rsvp_url}}'>RSVP Now</a></body></html>",
"text": "Hi {{user.first_name}},\n\nYou're invited to {{event.name}} on {{event.date | date:'MMM D, YYYY'}}.\n\nRSVP: {{event.rsvp_url}}",
"variables": ["user.first_name", "user.vip_status", "event.name", "event.date", "event.rsvp_url"],
"default_language": "en-US"
}