Create Templates
Last updated
Was this helpful?
Last updated
Was this helpful?
Through this endpoint you can create a template with dynamic button tags
This endpoint allows the creation of a template (without tags).
This endpoint enables the creation of a template that facilitates videos.
Accepted video formats are: video/mp4
.
Limited to max size of: 15MB
Templates only support videos encoded with H.264 video codec and AAC audio codec, and they must have either a single audio stream or no audio stream.
This endpoint allows the creation of a template featuring quick reply buttons and an image in the header.
This endpoint empowers the creation of a template enriched with tags for enhanced categorisation. This Template facilitates systematic organisation and targeted communication strategies.
This endpoint empowers the creation of a template enriched with both tags and an image.
This endpoint enables the creation of a template with both tags and quick reply buttons. The following Template furnishes details incorporating tags and interactive elements for enhanced communication strategies.
This endpoint empowers the creation of a template enriched with both tags and call-to-action buttons.
This endpoint enables the creation of a template with an image and quick reply buttons. The following Template furnishes details incorporating tags and interactive elements for enhanced communication strategies.
POST
https://channel360.co.za/v1.1/org/{orgId}/whatsapp/templates
Query String Parameters:
<ADD_SECURITY_RECOMMENDATION>
Optional.
Set to true
if you want the security recommendation body string included in the response.
The string is not editable.
If omitted, the security recommendation string will not be included. (For your security, do not share this code.)
true
<CODE_EXPIRATION_MINUTES>
Optional.
Set to an integer if you want the code expiration footer string included in the response.
If omitted, the code expiration footer string will not be included.
Value indicates number of minutes until code expires.
Minimum 1
, maximum 90
.
10
<BUTTON_TYPES>
Required.
Comma-separated list of strings indicating button type.
If included, the response will include the button text for each button in the response.
For authentication templates, this value must be OTP
.
OTP
Example Request:
API call to create a Template with dynamic button tags
/v1.1/org/:orgId/whatsapp/templates/.
interactive_template_with_dynamic_buttons
This is an interactive template with dynamic buttons
en_US
true
MARKETING
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"IMAGE","example":{"header_url":"https://channel360-template-tags.s3.af-south-1.amazonaws.com/2024-03-26T08%3A26%3A03.438Z-Manage-Deals-More-Efficiently.jpg"}},{"type":"BODY","text":"Hi, this is a template demonstrating an interactive template"},{"type":"BUTTONS","buttons":[{"type":"URL","url":"https://channel360.co.za/organization/{{1}}","text":"View Dashboard"}]}]
API call to create a Video Template
/v1.1/organization/:orgId/whatsapp/templates/
example_of_a_video_template
Channel Mobile video template example
default
en_US
true
MARKETING
MARKETING
, AUTHENTICATION
, UTILITY
[{"type":"HEADER","format":"VIDEO","example":{"header_url":["https://channel360-template-tags.s3.af-south-1.amazonaws.com/Zendesk+Overview+Demo.mp4"]}},{"type":"BODY","text":"Hi {{1}}, watch this video","example":{"body_text":["John"]}},{"type":"BUTTONS","buttons":[{"type":"QUICK_REPLY","text":"Looks Good"}]}]
API call to create a new Template (Without Tags)
/v1.1/org/{orgId}/whatsapp/templates
The template name must only contain lower case letters, underscores, and numbers
hello_peter_test
1234
Can always be default
default
en_US
en_US
, en
true
ACCOUNT_UPDATE
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"TEXT","text":"1234"},{"type":"BODY","text":"1234"},{"type":"FOOTER","text":"1234"}]
API call to create a new Template (With image and quick reply buttons)
/v1.1/org/:{orgId}/whatsapp/templates
est_example_with_image_and_buttons
this is a internal description
channel_test_template
en
true
ALERT_UPDATE
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"IMAGE","example":{"header_url":"https://i.ibb.co/q0TtsQT/Template3.jpg"}},{"type":"BODY","text":"*Hello*\n\nThis is a demo broadcast to show you what an image header looks like. Click a call to action button to begin!"},{"type":"BUTTONS","buttons":[{"type":"QUICK_REPLY","text":"Yes"},{"type":"QUICK_REPLY","text":"No"}]}]
API call to create a new Text Template (with Tags)
/v1.1/org/:orgId/whatsapp/templates
test_text_with_tags_button_api_2
Test in API
default
en
true
ALERT_UPDATE
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"TEXT","text":"HI"},{"type":"BODY","text":"Hello {{1}} This is a demo broadcast to show you what an image header looks like. Click a call to action button to begin!"}]
API call to create Image Template (With Tags and Call To Action Buttons)
/v1.1/org/orgId/whatsapp/templates/
ci_test_image_tags_cta_buttons
Automated Test Template
default
en
true
ALERT_UPDATE
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"IMAGE","example":{"header_url":"https://channel360-template-tags.s3.af-south-1.amazonaws.com/2023-01-03T08%3A32%3A22.190Z-MEng-Engineering-Hero-1200x600.jpeg"}},{"type":"BODY","text":"Hi {{1}}, Automated test for campaign with Image Header + Tags + Call to Action Buttons","example":{"body_text":["John"]}},{"type":"BUTTONS","buttons":[{"type":"URL","text":"URL","url":"https://docs.channel360.co.za/"},{"type":"PHONE_NUMBER","text":"Phone Number","phoneNumber":"+27651257819"}]}]
API call to create Text Template (With Tags and Quick Reply Buttons)
/v1.1/org/{orgId}/whatsapp/templates/
ci_test_text_tags_qr_buttons
Automated Test Template
default
en
true
ALERT_UPDATE
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"TEXT","text":"Hi {{1}}"},{"type":"BODY","text":"Automated test for campaign with Text Header + Tags + Quick Reply Buttons"},{"type":"BUTTONS","buttons":[{"type":"QUICK_REPLY","text":"Yes"},{"type":"QUICK_REPLY","text":"No"}]}]
API call to create Image Template (With Tags and Call To Action Buttons)
/v1.1/org/orgId/whatsapp/templates/
ci_test_image_tags_cta_buttons
Automated Test Template
default
en
true
ALERT_UPDATE
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"IMAGE","example":{"header_url":"https://channel360-template-tags.s3.af-south-1.amazonaws.com/2023-01-03T08%3A32%3A22.190Z-MEng-Engineering-Hero-1200x600.jpeg"}},{"type":"BODY","text":"Hi {{1}}, Automated test for campaign with Image Header + Tags + Call to Action Buttons","example":{"body_text":["John"]}},{"type":"BUTTONS","buttons":[{"type":"URL","text":"URL","url":"https://docs.channel360.co.za/"},{"type":"PHONE_NUMBER","text":"Phone Number","phoneNumber":"+27651257819"}]}]
API call to create a new Template (With image and quick reply buttons)
/v1.1/org/:{orgId}/whatsapp/templates
est_example_with_image_and_buttons
this is a internal description
channel_test_template
en
true
ALERT_UPDATE
MARKETING
, ACCOUNT_UPDATE
, UTILITY
[{"type":"HEADER","format":"IMAGE","example":{"header_url":"https://i.ibb.co/q0TtsQT/Template3.jpg"}},{"type":"BODY","text":"*Hello*\n\nThis is a demo broadcast to show you what an image header looks like. Click a call to action button to begin!"},{"type":"BUTTONS","buttons":[{"type":"QUICK_REPLY","text":"Yes"},{"type":"QUICK_REPLY","text":"No"}]}]