create template

Create a notification template (available for email, sms and webhook notifications types).

Request body


* If the type is message and the html is true the body will be validated on the valid html format.
* If the type is message and the html is false the body will be considered as plain text.
* If the type is fields and the html is true then an error will occur (incompatible values).

body+stringUse custom text or/and predefined variables, in which PowerBoard automatically pulls values from customer, charge or subscription data objects.
label+stringName of current template to identify it further
html-boolBody could be in html or plain text format. Allowed values true, false, default is false
type-stringAllowed values: message, fields. Default is message
notification_event+stringEvent to trigger notification. Look at the Event table