List Carriers
Use this endpoint to list Carriers using the Channel Manager API. It fetches the carrier's list.
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.
Write the code
Add the following to list-carriers.sh:
curl -G https://api.nexmo.com/v1/channel-manager/rcs/metadata/carriers \
-u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \
-H 'Accept: application/json' \Run your code
Save this file to your machine and run it:
bash list-carriers.sh