Create a template
Create a reusable template. At least one of html or text is required. Templates carry no subject — the subject comes from the send request.
POST
Create a reusable template. At least one of html or text is required. Templates carry no subject — the subject comes from the send request. Placeholders use {{name}} (flat keys only); only the required list in variables_schema is enforced, and only at send time. Requires the send scope.
Loading code example
Loading code example
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
namestringrequiredLength:
>= 1htmlstringtextstringvariables_schemaobjectOpaque JSON schema-ish object; only its `required` list is enforced, at send time.
Response
application/json
The template was created.
object"template"requiredAllowed values:
"template"idstringrequirednamestringrequiredhtmlstringrequiredtextstringrequiredvariables_schemaobjectrequiredOpaque JSON schema-ish object; only its `required` list is enforced, at send time.
created_atstring<date-time>requiredupdated_atstring<date-time>required