How to use your bearer access token
Before you invoke an API call, you must be authenticated. When you have authenticated, you must mark each subsequent request with an HTTP header—Authorization with the Bearer access token set.
Your token expires after 1 hour. You can reuse your token as many times as you like during that time. To reuse your token, simply cache it and, each time you make a request, grab the token from your cache.
To avoid errors being returned by your API request due to an expired token, intercept 401 Unauthorized
 errors with a The access token is invalid or has expired
 message that your request receives when you use your cached token. If you receive such a message, request a new token and replace the cached value with the new one.
Headers
Authorization (required)
Bearer {access_token}Â
Where {access_token} was returned in the response after invoking getting a bearer access token. For information on getting a bearer access token, see Getting a bearer access token.
Example
Most URLs in the example code use the following values:Region URL subdomain Base URL EMEA emea https://emea.cc.vonage.com USA nam https://nam.cc.vonage.com APAC apac https://apac.cc.vonage.com
curl -H "Authorization: Bearer a1b2c3d4e5f6g7h8i9j0" -X GET "https://***.cc.vonage.com/v0/123456/calls/94e5928c-7f7e-4645-ad72-61010f