š§As part of our ongoing platform improvements, we will be performing a scheduled system upgrade that will temporarily affect our Template Management API's endpoints.
During this time, requests sent to the affected endpoint may fail or return an error response. All other platform services and API endpoints will remain fully operational.
You will be able to create your custom messaging templates either by utilizing My Telesign Portal or by reaching out to the Customer Support Team or your dedicated Customer Success Manager.
šTo add this product to your account, contact a Telesign expert. This product is available for full-service accounts only.
To set up a template for an email channel, contact our Customer Support Team.
This page lists each template, its template-specific parameters, and its recommended channels. These parameters are in addition to those for any request to Telesign Messaging.
šFor a full list that defines both these parameters and others that are common to any request, go to POST /v1/omnichannel.
| Recommended For |
|---|
| all channels |
Send a simple text-only message.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.text | string | The main text of your message. | All purchases today are 20% off! | y |
Send a simple text-only message as part of a Viber two-way chat. The schema is the same as for the text template.
Send a simple text-only message as part of a Viber session chat. The schema is the same as for the text template.
Send a message to an end-user that includes an embedded image, audio file, or video file.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.url | string | The URL for the image, video, or audio file to embed in the message. | https://acme.co/summer_deals.png | y |
Send a message to an end-user that includes a link button to a URL of your choice.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.text | string | The main text of your message. | All purchases today are 20% off! | y |
| message.{channel_name}.parameters.url_text | string | Text for the link in the message. | See all deals here. | y |
| message.{channel_name}.parameters.url_payload | string | Unique identifier for the link in the message. | mktUrl1 | y |
| message.{channel_name}.parameters.url | string | The URL for the link in the message. | https://acme.co/summer_deals | y |
Send a message to an end-user that displays a vertically stacked rich card, including both an image and a link button to a URL of your choice.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.url_text | string | Text for the link in the message. | See all deals here. | y |
| message.{channel_name}.parameters.url_payload | string | Unique identifier for the link in the message. | mktUrl1 | y |
| message.{channel_name}.parameters.url | string | The URL for the link in the message. | https://acme.co/summer_deals | y |
| message.{channel_name}.parameters.media_url | string | The URL reference for the image to include in the rich card in your message. | https://s3.amazonaws.com/acmeco-content/group_photo.jpg | y |
Send a message to an end-user that displays a horizontally arranged rich card, including both an image and a link button to a URL of your choice.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.url_text | string | Text for the link in the message. | See all deals here. | y |
| message.{channel_name}.parameters.url_payload | string | Unique identifier for the link in the message. | mktUrl1 | y |
| message.{channel_name}.parameters.url | string | The URL for the link in the message. | https://acme.co/summer_deals | y |
| message.{channel_name}.parameters.media_url | string | The URL reference for the image to include in the rich card in your message. | https://s3.amazonaws.com/acmeco-content/group_photo.jpg | y |
Send a message to an end-user that includes a button they can select to initiate a voice call.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.text | string | The main text of your message. | All purchases today are 20% off! | y |
| message.{channel_name}.parameters.dial_text | string | Text on the click-to-call button. | Call agent | y |
| message.{channel_name}.parameters.phone_number_to_dial | string | The complete phone number to call when the button is selected. Include + at the beginning of international numbers. | +15555551212 | y |
| message.{channel_name}.parameters.dial_payload | string | Unique identifier for the click-to-call phone number in the message. | dial_payload | y |
Send a message to an end-user that displays a vertically stacked rich card, including both an image and a click-to-call button.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.dial_text | string | Text on the click-to-call button. | Call agent | y |
| message.{channel_name}.parameters.phone_number_to_dial | string | The complete phone number to call when the button is selected. Include + at the beginning of international numbers. | +15555551212 | y |
| message.{channel_name}.parameters.dial_payload | string | Unique identifier for the click-to-call phone number in the message. | dial_payload | y |
| message.{channel_name}.parameters.media_url | string | The URL reference for the image to include in the rich card in your message. | https://s3.amazonaws.com/acmeco-content/group_photo.jpg | y |
Send a message to an end-user that displays a horizontally arranged rich card, including both an image and a click-to-call button.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.dial_text | string | Text on the click-to-call button. | Call agent | y |
| message.{channel_name}.parameters.phone_number_to_dial | string | The complete phone number to call when the button is selected. Include + at the beginning of international numbers. | +15555551212 | y |
| message.{channel_name}.parameters.dial_payload | string | Unique identifier for the click-to-call phone number in the message. | dial_payload | y |
| message.{channel_name}.parameters.media_url | string | The URL reference for the image to include in the rich card in your message. | https://s3.amazonaws.com/acmeco-content/group_photo.jpg | |
Send a message to an end-user that includes a question and two buttons, each of which suggests a reply for them to choose from.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.text | string | The main text of your message. | All purchases today are 20% off! | y |
| message.{channel_name}.parameters.button_text_1 | string | The text of the first suggested reply. | Yes | y |
| message.{channel_name}.parameters.button_payload_1 | string | Unique identifier for the first reply. | r1id | y |
| message.{channel_name}.parameters.button_text_2 | string | The text of the second suggested reply. | No | y |
| message.{channel_name}.parameters.button_payload_2 | string | Unique identifier for the second reply. | r2id | y |
Send a message to an end-user that includes a question and three buttons, each of which suggests a reply for them to choose from.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | |
| message.{channel_name}.parameters.text | string | | All purchases today are 20% off! | |
| message.{channel_name}.parameters. button_text_1 | string | | Yes | |
| message.{channel_name}.parameters.button_payload_1 | string | | r1id | |
| message.{channel_name}.parameters.button_text_2 | string | | No | |
| message.{channel_name}.parameters.button_payload_2 | string | | r2id | |
| message.{channel_name}.parameters.button_text_3 | string | | Not sure | |
| message.{channel_name}.parameters.button_payload_3 | string | | r3id | |
| Recommended For |
|---|
| WhatsApp |
| MMS |
| Viber |
Send a message to an end-user that includes an embedded image.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.url | string | The URL for the image to display in the message. | https://acme.co/summer_deals.png | y |
Send a message to an end-user that includes an embedded image as part of a Viber two-way chat. The schema is the same as for the image template.
Send a message to an end-user that includes an embedded image as part of a Viber session chat. The schema is the same as for the image template.
| Recommended For |
|---|
| WhatsApp |
| MMS |
| Viber |
Send a message to an end-user that includes an embedded video.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.url | string | The URL for the video to display in the message. | https://acme.co/summer_deals.mp4 | y |
| Recommended For |
|---|
| WhatsApp |
| MMS |
Send a message to an end-user that includes embedded audio.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.url | string | The URL for the audio to embed in the message. | https://acme.co/summer_deals.mp3 | y |
Send a message to an end-user that includes an attached file for them to open or download. This file is hosted by you.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | y |
| message.{channel_name}.parameters.url | string | The URL for the file attachment to embed in the message. | https://acme.co/summer_deals.xlsx | y |
Send a message to an end-user that includes latitude and longitude coordinates for a geographical location.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | |
| message.{channel_name}.parameters.latitude | string | The latitude coordinate of your location as a positive or negative number. | 37.423021 | |
| message.{channel_name}.parameters.longitude | string | The longitude coordinate of your location as a positive or negative number. | -122.083739 | |
Send pre-approved localized template to the end-users.
| Parameter | Type | Description | Example | Required? |
|---|
| message.{channel_name}.parameters | object | Contains sub-properties with values for variables in the message template. | | |
| message.{channel_name}.parameters.otp_code | string | The OTP code of your verified template message. | 12345 | y |
| message.{channel_name}.parameters.language | string | ISO 639-1 two-letter language code . If not specified, the default value will be English language. | en | n |
The content of the template is: Your code is {{otp_code}}. Please don't share your code with ANYONE. We'll never call or message you and ask for it.