Get your current account balance

You can check the balance of your Vonage account at any time by making an API request and receiving the balance of your account in the response.

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

Write the code

Add the following to account-balance.sh:

View full source

Run your code

Save this file to your machine and run it:

bash account-balance.sh

The example will output the current balance of your account in Euro.