Update the profile for a specific WhatsApp Business Account (WABA) Number

Use this endpoint to update details of the profile for a specific Number associated with a WhatsApp Business Account (WABA).

Example

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

KeyDescription
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 update-waba-number-profile.sh:

curl -X PATCH https://api.nexmo.com/v1/channel-manager/whatsapp/numbers/${CHANNEL_MANAGER_WABA_NUMBER}/profile \
  -u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d $'{
    "about": "About my business",
    "address": "123 Main Street, Anytown, USA",
    "description": "Description of my business",
    "email": "bob@example.com",
    "profile_picture_url": "https://example.com/profile.png",
    "websites": [
        "https://example.com",
        "https://example.org"
    ],
    "vertical": "OTHER"
    }'

View full source

Run your code

Save this file to your machine and run it:

bash update-waba-number-profile.sh