Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The content you are looking for has been archived. View related content below.
Hi,
I'm working on a DIY motion detection project with a raspberry pi and I was able to save image files to my dropbox by using the generated access token (which is ridiculously long btw). My issue is that the token changes after every use. Is there a way to get a permanent access code?
Thanks,
Dan
What do you mean when you say the access token changes after every use? Do you mean you're clicking the Generate button each time you need an access token?
Access tokens don't expire by themselves (though they can be manually revoked), so once you generate one for your account, you can store and re-use it programmatically in the future, without generating a new one.
Thanks for clarifying. The code you're referring to is an authorization code, not an access token. Authorization codes are temporary, and can only be used once. So, instead of trying to re-use an authorization code or authorizing the app each time, you should store and re-use the resulting access token, passing it directly to the DropboxClient constructor.
Thanks!
It worked!
Are you really sure that access token will not expire at all. How do I can see the old access tokens ?
Or Can I request token via client api along with the old one?
c. chunta, correct, access tokens don't expire.
You need to store the access token yourself to keep using it. There's no way to ask Dropbox for previous access tokens, but you can always get a new access token by taking a user through the OAuth flow.
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 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!