Testing WhatsApp Channel API
Testing and sending WhatsApp template messages is not supported.
Sending MessagesReceiving Messages-
Go to the Integration section of your edna Pulse account.
-
If you plan to test the API, go to the Settings tab, generate an API key, and configure URLs for webhook requests.
API Settings -
Go to the Testing tab.
-
Make sure the API key is specified, or click on the icon and select Generate API key.
-
Make sure the correct URLs for webhook requests are specified.
-
(Optional) Click Add a webhook URL, specify the webhook URL for sending information about message status changes, and click Add.
-
In the format
35xxxxxxxxx, add the phone number(s) from which you will be writing to the WhatsApp test account.tipWhatsAppThe WhatsApp application should be installed on devices connected to these numbers. -
From the device specified in the previous step, follow the link or scan the QR code to open a chat with a test account in the WhatsApp application.
-
Write and send any message.
-
Go to Analytics → Messages section of your edna Pulse account and make sure that the message you just sent is displayed there.
How to View and Download Message Report -
Return to the Integration → Testing section and send a reply outgoing message to the test account using the API call sending tool:
-
Specify the added test phone number in the
"address"string:{
"requestId": "2303623b-a950-4461-bc50-379e6d7dcdcb",
"cascadeId": "136",
"subscriberFilter": {
"address": "35000000000",
"type": "PHONE"
},
"content": {
"whatsappContent": {
"contentType": "TEXT",
"text": "WhatsApp TEXT"
}
}
} -
Click Call resource.
-
-
Ensure that the message has been received by the added device.