Get/renew an access token

The method allows you to exchange an authorization code to access token and refresh token

Example of request body (getting an access code and refresh code)

{
  "client_id": "xxxx",
  "client_secret": "xxxx",
  "grant_type": "authorization_code",
  "code": "xxxxxxx",
  "redirect_uri": "https://test.test"
}

Example of request body (getting a new access token once it expires)

{
 "client_id": "xxxx",
  "client_secret": "xxxx",
  "grant_type": "refresh_token",
  "refresh_token": "xxxxx",
  "redirect_uri": "https://test.test"
}

Response parameters

ParameterData typeDescription
token_typestringToken type (Bearer)
expires_inintTime in seconds, which shows when the token will expire
server_timeintToken issue time on server
access_tokenstringAccess token
refresh_tokenstringRefresh token
Language
URL
Click Try It! to start a request and see the response here!