Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Rich F.5's avatar
Rich F.5
Explorer | Level 4
4 months ago

Dropbox Access Tokens - How do they work?

I'm currently using Dropbox Access Tokens which expire pretty quickly. 

I'm wanting to know when I publish my app, which downloads files from Dropbox, how I get a fully working Access Token that won't expire within a few hours.  Do I need a membership of some sort for this to happen?  I can't be updating access tokens at all as I need to be running a business.    

Cheers

4 Replies

  • Rich's avatar
    Rich
    Icon for Super User II rankSuper User II
    4 months ago
    Rich F.5 wrote:

    ... how I get a fully working Access Token that won't expire within a few hours. Do I need a membership of some sort for this to happen?

    Dropbox is no longer offering the option for creating new long-lived (i.e. non-expiring) access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here.

    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. Refresh tokens do not expire automatically and can be used repeatedly. 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.

    This is the same response you received from iNeil 6 months ago when posing a similar question.

  • Rich F.5's avatar
    Rich F.5
    Explorer | Level 4
    4 months ago

    OK, thank you for that.  My memory is fading.  

    It's suggesting that long term access tokens currently in use won't be replaced.  Is this feature about to disappear?  I don't want my application to fold because Dropbox turns this feature of public submission off.  

  • Rich's avatar
    Rich
    Icon for Super User II rankSuper User II
    4 months ago
    Rich F.5 wrote:

    It's suggesting that long term access tokens currently in use won't be replaced. Is this feature about to disappear?

    They've long held that existing tokens, those created prior to the feature being deprecated/discontinued, will not be revoked. Whether or not that will change in the future, no one knows.

    That being said, if you don't already have a long-lived token from before they were discontinued, you wouldn't be able to get one now. Your app needs to request offline access and use refresh tokens.

  • Rich F.5's avatar
    Rich F.5
    Explorer | Level 4
    4 months ago

    It's just that I'm about to start a company where using Dropbox is a way of getting files to the app.  It's more about Dropbox strategy or vision, than what tokens to use.  

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!