List Existing Notification Subscriptions
This code snippet shows how to retrieve a list of all of your existing subscriptions for changes to your WhatsApp business account.
Example
Find the description for all variables used in each code snippet below:
| Key | Description |
|---|---|
VONAGE_API_KEY | Your Vonage API key (see it on your dashboard). |
VONAGE_API_SECRET | Your Vonage API secret (also available on your dashboard). |
Prerequisites
If you do not have an application you can create one. Make sure you also configure your webhooks.
Run your code
Save this file to your machine and run it:
bash get-notification-webhooks.sh
Try it out
When you run the code you will receive a list of all of your existing notification subscriptions.