Templates are reusable designs for push notifications, emails, and SMS. They do support liquid syntax for Message Personalization.
The Templates page shows the list of templates you have created, and basic statistics on their performance (notifications opened and sent).
To create a new template, click New Template and select the channel-type from the dropdown. This brings you to a page identical to the Sending Message Create Form, but instead of sending a message, you are creating a reusable template.
Templates may also be created by duplicating templates from the Templates page:
Once you've created a template, to send it using that template click the Options button and click New Message.
This will pre-populate the template options you've set into a new message. You can override these options (such as changing text, an icon, etc) when creating a message, by simply filling in different options. For details on these options, see:
Whenever you send a message with a template, its overall performance is tracked by OneSignal in the Templates page of your Dashboard.
Best practice is to have different templates for each use case so you can monitor how well your template campaigns are converting.
|Name||Name of the template.|
|Type||Push, Email, or SMS.|
|Sent||The number of devices in which this template was delivered. For example, if you send the template once but target 793 devices, it will show 793.|
|Opened||Push: The unique number of times the push was clicked leading to app open.|
Email: The total number of times the email was opened.
SMS: Not Applicable at this time.
|Conversion||(Opened / Sent) x 100%|
template_id used in the Create notification API is taken from the URL of the template when editing it. It is in the standard UUID format.
In this case, the template_id is
Updated 2 months ago