Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.
Forum Discussion
Mwidders
3 years agoNew member | Level 2
Generated access token
Can someone help me? Every time I generate an access token for my integration it changes within 30-45 seconds and my integration fails. Is there something I am missing as to why the code would only be valid for 30-60 seconds? The integration works for the first file but by the second file and token code it fails due to it no longer being a valid code. Can someone help me please?
- ЗдравкоLegendary | Level 20
Hi Mwidders,
To be honest, I'm not completely aware what exactly you have in mind. There is NO such thing like "token code"! Different authentication ways can be used to authenticate your link to Dropbox and all they end with access token that is in use in regular API' calls. One such way is using confirmation code. This code is "one shot" type and strongly limited in time! It's just the first authentication flow step and can NOT be used repeatedly. That's it, if it's confusing you.
Further, the access token itself if limited in time too. Can be used for 4 hours at most (exact period is mentioned in "expires_in" field in seconds). To prolong provided access without additional user interaction, you have to query offline access and keep the refresh token (it doesn't expire). 😉
Hope this clarifies matter.
- Greg-DBDropbox Staff
Mwidders As Здравко mentioned, it's not clear what exactly you're referring to. If you're referring to an "authorization code", note that that can only be used once. Otherwise, a "short-lived access token" would be valid for several hours, unless revoked by the app or user. The OAuth Guide and authorization documentation may be helpful.
Otherwise, I can help investigate the issue, but I'd need more specific information. In that case, please reply with:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of any error or unexpected output
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,928 PostsLatest Activity: 11 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!