Include the message object in the curl above only if the template has media.
Refer image, video and document template docs to get the corresponding message payloads.
Omit the postbackTexts parameter in the curl above if the template doesn’t have quick reply buttons, or if it has but there’s no need for postback text support.
Request Parameters
Parameter
Location
Type
Description
Example
apikey
Header
string
Your account API key
2xxc4x4xx2c94xxxc2f9xx9d43xxxx8a
Form Parameters (Request Body)
Parameter
Type
Required
Description
Example
source
string
Yes
Sender WhatsApp Number
919163xxxxx3
src.name
string
Yes
App name that the source number belongs to
DemoApp
destination
string
Yes
Receiver WhatsApp Number
917839xxxxx3
template
object
Yes
Contains template id and list of template parameters, including the coupon code
See below for detailed structure
message
object
No
Optional; required for media templates
See below for detailed structure
postbackTexts
array
No
List of objects containing postback text details
See below for detailed structure
channel
string
No
Messaging Platform Name
whatsapp
template object structure:
Field
Type
Description
Example
id
string
Template ID
template_id
params
array
List of template parameters; MUST include the coupon code value in order