Create Templates
Template
Create Templates
Create a dynamic message template
POST
Create Templates
Variables can be used on all templates built with Content Template Builder. There are a few differing rules for variables sent in a user and business initiated sessions.
Some Template Rules
Content variables need to be in sequential order. They can be is non-sequential order within a template, but variable definitions should not skip over integers. Not Allowed:body: Hi {{1}}, Your flight will depart from gate {{3}}. Please reply Stop to unsubscribe.
Allowed: body: Hi {{1}}, Your flight will depart from gate {{2}}. Please reply Stop to unsubscribe.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The standard body with possible interpolated fields
Example:
"My name is {{1}} and i am from {{2}}"
The integers in a format of a string in {{1}} from body
Example:
["1", "2"]Template name
Example:
"Welcome Message"
Template slug
Example:
"WLG"
Template Use cases seprated by comma
Example:
"business"
Response
200 - undefined