Get WABA Number Profile
Use this endpoint to retreive details of the profile for a specific Number associated with a WhatsApp Business Account (WABA) using Channel Manager API.
Example
Find the description for all variables used in each code snippet below:
| Key | Description |
|---|---|
CHANNEL_MANAGER_WABA_ID | The |
CHANNEL_MANAGER_WABA_NUMBER | The whatsapp_number for which to retrieve the profile details. |
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 get-waba-number-profile.sh:
curl -G https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/${CHANNEL_MANAGER_WABA_ID}/numbers/${CHANNEL_MANAGER_WABA_NUMBER}/profile \
-u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \
-H 'Accept: application/json' \Run your code
Save this file to your machine and run it:
bash get-waba-number-profile.sh