We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

TarunK's avatar
TarunK
New member | Level 2
4 years ago

Refreshing short lived access token after expiry

I login into my personal account, create an app in the app console and generate an short-lived access token. After this token has expired, can I use it to generate a new access token programmatically without the need for login in again?. 

 

If yes, is it the same for team(enterprise) account as well

  • No, it is not possible to use a short-lived access token to programmatically generate another access token. If you need long-term access without manual user intervention, you should use the OAuth flow to get a refresh token, which can be used to programmatically retrieve new short-lived access tokens on demand. Please refer to the OAuth Guide and authorization documentation for more information on doing so.

     

    This works the same way for both Business/Enterprise and non-Business/Enterprise accounts.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    No, it is not possible to use a short-lived access token to programmatically generate another access token. If you need long-term access without manual user intervention, you should use the OAuth flow to get a refresh token, which can be used to programmatically retrieve new short-lived access tokens on demand. Please refer to the OAuth Guide and authorization documentation for more information on doing so.

     

    This works the same way for both Business/Enterprise and non-Business/Enterprise accounts.

About Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 2 years ago
323 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!