Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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?
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.
@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:
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!