refresh_token

refresh_token

For some applications (Desktop, Backend) it is useful that the user does not have to login via our OAuth 2 Login Page every time the access token expires. If we decide that your application is within these requirements, we will grant your application the possibility to generate new access tokes with a refresh token. While requesting your initial access token you also received a refresh token. Use it to request a new access token:

    • Example Request
      • POST
      • URL: sandboxURL/oauth/token?grant_type=refresh_token
      • Basic Auth: CLIENT_ID:CLIENT_SECRET
      • Content Type: x-www-form-urlencoded
      • Body: refresh_token=REFRESH_TOKEN_VALUE
    • Example Response
{ 
 "access_token": "6dc65b83-6d78-4b80-8ad2-6fac14a9e7c7",
 "token_type": "bearer",
 "expires_in": 43199,
 "refresh_token": "283b1857-6d78-4b80-8ad2-6fac14a9e7c7",
 "scope": "files_folders sharing"
}php