Forum Discussion

valnouk's avatar
valnouk
New member | Level 2
5 years ago

api v2 token expired !

Hello Everyone,

I noticed my api v2 oauth token expires after 4 hours. 

Is there anything i should modify in my account settings for the oauth token to never expire ?

If not, is there any workaround i could use to refresh the token automatically ?

thank you,

Anouk

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

    It sounds like you're probably using access tokens from the API v2 Explorer. That's just meant for prototyping calls, and is currently using early access to a new feature where it only returns short-lived access tokens.

    To get long-lived tokens, you should retrieve them for your own registered API app, instead of the API v2 Explorer. You can find information on how to do so in the OAuth Guide.

    • valnouk's avatar
      valnouk
      New member | Level 2

      thanks Greg. I ll check the guide you mentionned

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
351 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!