Create a template

Create a message template. content is read against the schema channel selects: text for sms, a file_id reference for voice, and for rcs one of the three shapes identified by their fields — text (text), card (card), or carousel (cards). Every file content references must already be uploaded and of a kind the slot accepts.

The {{variable}} placeholders found in content are extracted into variables; each send then supplies a value for every one of them, per recipient. name is unique per channel among live templates. Content, channel, and follow-up rules are fixed at creation — only name can be changed afterwards.

Body Params

A message template to create. content is read against the schema channel selects, and every file the content references must already be uploaded and of a kind the slot accepts. The {{variable}} placeholders found in content are extracted into the template's variables. Only name can be changed afterwards.

string
required
length between 3 and 120

Template name, 3 to 120 characters. Unique per channel among live templates.

string
enum
required

Channel this template is sent over. Selects the accepted content shape.

Allowed:
content
required

Channel-specific content, read against the schema channel selects.

follow_up_rules
array of objects

Rules that send another template when a send of this one reaches a given outcome; at most one rule per outcome.

follow_up_rules
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json