question

ajith-nk12856 avatar image
ajith-nk12856 asked Anirban answered

Getting New Refresh Token

How can I generate a new RefreshToken once Old one get Expired?

getting started
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered
You have to log in again.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
Refresh token expires in 7 days by default. You can refresh it before it expires. If it is already expired, you'd have to do authorization again.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

ajith-nk12856 avatar image
ajith-nk12856 answered Tyler Liu commented
How can I refresh it before it expires?
I have gone through your documentation, But i failed to found a solution.
6 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Which programming language are you using? Are you using any SDKs?
0 Likes 0 ·
I am working through JAVA
0 Likes 0 ·
Is there any api provided for regenerating RefreshToken?
0 Likes 0 ·
To my knowledge, while refreshing AccessToken. RefreshToken also regenerated right?
0 Likes 0 ·
Show more comments
Anirban avatar image
Anirban answered

You can use the same ringcentral token API to get new reresh_token.

When you are going to generate a new access_token using existing refresh_token, you will automatically get a new refresh_token generated along with new access_token

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys