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:
Key | Description |
---|---|
bearer_token | Your OAuth token. Read more about OAuth tokens |
account_id | The 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' \