You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

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

short-lived access tokens for sharing data

Hi, how to programmatically generate a temporary link to share my data in my dropbox with other users in short-lived access token scheme? I currently use a long-lived access token generated on my app's webpage, and my script uses the fixed token to generate a link. Based on what I read on documentation, the short-lived tokens using OAuth seem to be generated for the user, not for accessing data on my account; thus, even with a new token, users won't be able to access my data. Is this correct? If so, it would be helpful if you could give me a pointer on how I could implement a temp link generation for sharing purposes using short-lived access tokens. Thanks in advance!

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

    Long-lived access tokens and short-lived access tokens both work the same way, just with the exception that short-lived access tokens expire after a few hours, while long-lived access tokens don't. Otherwise, they serve the same purpose. That is, they each identify a particular app-account pair, and enable access to that account via the API to the extent allowed by the configured permissions.

     

    So, you can use a short-lived access token to call the API to generate links the same way you would use a long-lived access token to do so.

     

    I recommend reading the OAuth Guide and authorization documentation for more information on access tokens.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 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!