Forum Discussion

safe's avatar
safe
New member | Level 2
2 years ago

app dropbox

I would like to understand why everytime i use generate token i have to keep generating it when i log in. I'm not sure if my app code or refresh token is locked in because when i called for my api to automate a process it didn't work im using ducky script to automate a process and send my files to drop box account but it isn't working.

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

    Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens, which expire after several hours, (and optional refresh tokens, which don't expire) instead of long-lived access tokens. You can find more information on this migration here. The "Generate" button will now only generate short-lived access tokens for you.

    Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example. You'd need to use the OAuth authorization flow to get a refresh token; the "Generate" button does not produce refresh tokens.

    Note that this is something that would need to be implemented by the programmer of the app, so if you are not the programmer responsible for this integration, you may need to get an update from them to support this.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 32 minutes ago
352 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!