Create templates for push, email and sms visible and usable in the dashboard and API.
Templates are a way to set the content in one place and then create new notifications using that content from multiple different use cases (for example, create a new notification in the dashboard or via the API, automated notifications, and journeys). As such, they are the content part of notifications but without the targeting or scheduling and share all the same content-related fields exactly.
Push Templates
Recommended:
- Set the
contents
property with the English (en
) language. See Push Notification Content for details.
All Push Channel Properties are valid to include in your push templates.
By default, all push platforms are enabled (set to true
). You can disable specific push platforms by only setting the ones you want enabled to true. For example, setting isAndroid: true
will make iOS and Web platforms disabled in the template. See Platforms to delivery To for details.
Email Templates
Requirements:
- Set
isEmail: true
. - Must include the
email_subject
andemail_body
properties.
All Email Channel Properties are valid to include in your email templates.
SMS Templates
Requirements:
- Set
isSMS: true
.
All SMS Channel Properties are valid to include in your SMS templates.