Configure the settings for your account

You can programmatically configure the settings for your account, such as the callback URLs that the webhooks will use.

Example

This example shows how to set the URL that will be called when your Vonage number receives an SMS.

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).

SMS_CALLBACK_URL

The publicly-accessible URL that Vonage should send information to when your Vonage number receives an SMS

Write the code

Add the following to configure-account.sh:

View full source

Run your code

Save this file to your machine and run it:

bash configure-account.sh

The example outputs the current settings of your account, after it was updated with the new URL.