Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!
Forum Discussion
berniebetgcarpio
31 days agoNew member | Level 1
How to create a No expiration token?
Are there any ways to create a no-expiration token? Thanks
2 Replies
Sort By
- Rich
Super User II
berniebetgcarpio wrote:
Are there any ways to create a no-expiration token?
Long-lived tokens were deprecated back in 2021 and can no longer be created. You now use refresh tokens to retrieve new short-lived tokens as needed. See here for more information:
- DB-Des
Dropbox Engineer
Hi berniebetgcarpio,
As Rich mentioned, Dropbox issues short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens.
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,959 PostsLatest Activity: 23 hours ago
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!