githubEdit

Create Templates

Create a basic Template (without tags)

POST https://www.channel360.co.za/v1.1/org/:orgId/whatsapp/templates

Headers

Name
Value

Content-type

applications/json

Authorization

Bearer <token>

Body

Name
Type
Description

name

string required

This is the name of your template

description

string required

An explanation of what the template is used for

namespace

string required

language

string required

The language code of the template

enabled

boolean required

Whether the template is enabled

category

string required

The categories we provide are AUTHENTICATION, MARKETING and UTILITY

components

object[] required

Defines the message structure (header, body, buttons)

{
    "name": "summer_sale_announcement",
    "description": "Marketing template used to promote seasonal specials",
    "namespace": "default",
    "language": "en_US",
    "enabled": true,
    "category": "MARKETING",
    "components": [
        {
            "type": "HEADER",
            "format": "TEXT",
            "text": "Summer Sale!"
        },
        {
            "type": "BODY",
            "text": "Enjoy our biggest discounts of the season! Shop your favourite items and save up to 40%. Hurry—limited time only."
        },
        {
            "type": "FOOTER",
            "text": "Shop now"
        }
    ]
}

Dynamic Button Template

POST https://www.channel360.co.za/v1.1/org/:orgId/whatsapp/templates

Text & Media Templates with Tags

circle-info

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.

Media Template Type
Acceptable Formats
Media Size

Video

video/mp4

15 mb

Image

image/jpeg, image/png

15 mb

Document

application/pdf, text/csv

15 mb

Create a Template with Tags and Quick Reply Buttons

Create a Template with Tags and Call-to-Action Buttons

Create an Authentication Template

POSThttps://channel360.co.za/v1.1/org/{orgId}/whatsapp/templates

Query String Parameters:

Placeholder
Description
Example Value

<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:

Last updated

Was this helpful?