Templates
Here we will see how to create email and SMS templates. These templates will allow you to customize the text and email messages sent for each type of event.
If not configured and the configuration is enabled, the default template from our platform will be sent.
Note: To insert a custom variable in the text, simply add '[variable_name]'.
Creation of SMS template
Request
ENDPOINT
/notification/template
METHOD
POSTRequest Body
{
"template_type": "sms",
"template": "Olá seu token e [name]"
}
BODY PARAMS
Field | Type | Description | Characters |
---|---|---|---|
template_type * | string | Type of template -> Default value sms | - |
template * | string | SMS text | 160 |
Response
STATUS
201Response Body
{
"template_key": "17f49953-29a1-439c-a6be-db37a32e2746"
}
Creation of e-mail template
Warning
The email template is an HTML document compatible with email HTML formatting. It must be encoded in base64.