secret |
String
|
The API secret you copied from (Tools -> API Keys) page
|
account |
Number
|
WhatsApp account ID you want to use for sending, you can get account ID's from /get/wa.accounts (Your WhatsApp accounts).
|
campaign |
String
|
Name of the campaign, you will see this in the WhatsApp campaign manager.
|
recipients (optional) |
String
|
List of phone numbers or group addresses separated by commas. It can be optional if "groups" parameter is not empty. It will accept whatsapp group address E.164 formatted number or locally formatted numbers using the country code from your profile settings. Example for Philippines E.164: +639184661533 Local: 09184661533
|
groups (optional) |
String
|
List of contact group ID's separated by commas. It can be optional if "numbers" parameter is not empty. You can get group ID's from /get/groups (Your contact groups).
|
type |
String
|
Type of WhatsApp message.
Allowed values:
"text" ,
"media" ,
"button" ,
"list" ,
"template"
|
message |
String
|
Message or caption you want to send, spintax and shortcodes are supported.
|
media_file (optional) |
File
|
This is for "media" and "button" type message only. The media file you want to attach in the WhatsApp message, it supports jpg, png, gif and mp4 files. Please use POST method if you are using this parameter. "mp4" files are not supported in "button" type messages.
|
media_url (optional) |
String
|
This is for "media" and "button" type message only. The media file url, please use direct link to the media file. It will be downloaded and be attached in the WhatsApp message, it also supports jpg, png, gif and mp4 files. You can use GET method for this, "mp4" files are not supported on button messages.
|
media_type (optional) |
String
|
This is for "media" type message only. You only need to enter this parameter if you are using "media_url" instead of "media_file". You need to declare the file type of the media in the url you provided.
Allowed values:
"image" ,
"mp4"
|
document_file (optional) |
File
|
This is for "document" type message only. The document file you want to attach in the WhatsApp message, it supports pdf, xls, xlsx, doc and docx files. Please use POST method if you are using this parameter.
|
document_url (optional) |
String
|
This is for "document" type message only. The document file url, please use direct link to the document file. It will be downloaded and be attached in the WhatsApp message, it also supports pdf, xls, xlsx, doc, and docx files. You can use GET method for this.
|
document_type (optional) |
String
|
This is for "document" type message only. You only need to enter this parameter if you are using "document_url" instead of "document_file". You need to declare the file type of the document in the url you provided.
Allowed values:
"pdf" ,
"xls" ,
"xlsx" ,
"doc" ,
"docx"
|
button_1 |
String
|
This is for "button" type message only. The name for the first button.
|
button_2 (optional) |
String
|
This is for "button" type message only. The name for the second button.
|
button_3 (optional) |
String
|
This is for "button" type message only. The name for the third button.
|
list_title |
String
|
This is for "list" type message only. The title of the list. Please use POST method for "list" and "template" formats.
|
menu_title |
String
|
This is for "list" type message only. The title of the menu. Please use POST method for "list" and "template" formats.
|
footer |
String
|
This is for "list" and "template" type message only. The footer message. Please use POST method for "list" and "template" formats.
|
format |
String
|
This is for "list" and "template" type message only. The list or template format you want to send. This must be a valid JSON string, please check the example JSON in the quick message modal. Please use POST method for "list" and "template" formats.
|
shortener (optional) |
Number
|
Shortener ID, specify the shortener you want to use if you want to shorten the links in your message. You can get the list of available shorteners from /get/shorteners
Default value: none
|