Get account locations data by account ID

This example demonstrates how to get the physical location using the account_id. You can use this to retrieve details of the account, including the name of the account, the status, and its address.

Replace the following placeholder value in the sample code:

Key Description
bearer_token Your OAuth token. Read more about OAuth tokens
account_id The Vonage Business Communications account ID.
curl --location --request GET '$account_id/locations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $bearer_token' \