Join us in San Francisco on the 29/30th of October for two days of developer workshops and technical talks

Retrieve Details for a Specific Account

This example shows you how to use the Account API to retrieve details about an individual account.

Replace the following placeholders in the example with your own details:

Write the code

Add the following to get-account.sh:

Copy to Clipboard
curl -H "Authorization: Bearer $VBC_TOKEN" \
  https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/$VBC_ACCOUNT_ID

View full source

Run your code

Save this file to your machine and run it:

bash get-account.sh

The response is a JSON object containing details about the account. See the API documentation for descriptions of the fields in the response.

{
   "_links":{
      "self":{
         "href":".../accounts/9999999"
      }
   },
   "_embedded":{
      "account":{
         "id":999999,
         "name":"Test Account",
         "status":"ACTIVE",
         "address":{
            "address_1":"23 MAIN ST",
            "address_2":null,
            "country":"US",
            "state":"NJ",
            "city":"holmdel",
            "postal_code":"07733"
         }
      }
   }
}