Skip to main content
Templates

Create a message template

Creates a message template. Needs a key with the sparrow.write scope. Needs the key's creator to hold the TemplatesEdit permission.

POST
/templates
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
bodystringrequired

Template text with {Group.Field} variables, up to 5,000 characters.

languagestring

Language code of the template, such as en. Default en.

namestringrequired

Template name, up to 200 characters.

Response

application/json

Success

dataany
metaobject