Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The POST /Auth/connect/token endpoint creates a bearer access token for the provided client credentials.

Panel
borderColor#eeeeee
bgColorwhite
titleColorwhite
borderWidth1
titleBGColor#D34204
borderStylesolid
titleIn this page

Table of Contents

...


Info

Most of the example code uses one of the following URLs. To access the API for your region, use the URL with the correct subdomain for your region:

RegionURL subdomainBase URL
EMEAemeahttps://emea.cc.vonage.com
USAnamhttps://nam.cc.vonage.com
APACapachttps://apac.cc.vonage.com



Request parameters

Insert excerpt
_ExcerptAuthenticationAPIRequestParameters
_ExcerptAuthenticationAPIRequestParameters
nopaneltrue

Example request

Code Block
languagepowershell
themeMidnight
curl -X POST \
  https://emea.cc.vonage.com/Auth/connect/token \
  -H 'content-type: application/x-www-form-urlencoded' \
  -d 'grant_type=client_credentials&client_id=abcde&client_secret=12345&scope=agents-availability%3Aread'

Responses

Responses contains the new bearer access token.

Successful response

Successful requests return a 200 Success code and the token.

Example response

Code Block
languagejs
themeMidnight
{
    "access_token": "abcde12345",
    "expires_in": 7200,
    "token_type": "Bearer"
}

...