Making an API Request

Now that you've created an access token you are ready to make an API request.

Sample Request

The following sample uses curl. You can run this sample on the Linux command line.

Replace the following placeholder values in the sample code:

KeyDescription
bearer_tokenYour OAuth token. Read more about OAuth tokens
account_idThe Vonage Business Communications account ID. You can use 'self' to refer to the authenticated user's account.
curl --location --request GET 'https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/$account_id' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer $bearer_token' \