Create Brand

Use this endpoint to create a brand using the Channel Manager API. It creates a new brand.

Example

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

KeyDescription
VONAGE_API_KEY

Your Vonage API key (see it on your dashboard).

VONAGE_API_SECRET

Your Vonage API secret (also available on your dashboard).

CHANNEL_MANAGER_RCS_BRAND_NAME

The name of the RCS brand.

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 create-brand.sh:

curl -X POST https://api.nexmo.com/v1/channel-manager/rcs/brands \
  -u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d $'{
     "display_name": "'${CHANNEL_MANAGER_RCS_BRAND_NAME}'"
  }'

View full source

Run your code

Save this file to your machine and run it:

bash create-brand.sh