List Numbers for a WhatsApp Business Account (WABA)

Use this endpoint to list all Numbers associated with a WhatsApp Business Account (WABA).

Example

Find the description for all variables used in each code snippet below:

KeyDescription
CHANNEL_MANAGER_WABA_ID

The waba_id of the WhatsApp Business Account (WABA) for which to retrieve the template analytics data.

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.

Write the code

Add the following to list-waba-numbers.sh:

curl -G https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/${CHANNEL_MANAGER_WABA_ID}/numbers \
  -u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \
  -H 'Accept: application/json' \

View full source

Run your code

Save this file to your machine and run it:

bash list-waba-numbers.sh