Discuss Dropbox Developer & API
Hello,
Does anybody know why dropbox webhooks work only after I click Generate access token button ?
I have configured a webhook which is successfully verified by Dropbox. I have files.metadata.read permissions checked. However when I create new folder or upload a file in my Dropbox account the webhook is not working if I don't explicitly click the GENERATE access token button only one time. And I'm even not using the access token after generating it. And then suddenly everything start to work as expected. Webhooks start to work when I create new folder or upload a file.
Any idea ? I can't find this in the documentation ?
This is the expected behavior. Webhook notifications are only sent for changes that occur in accounts that are connected to the app. Generating an access token for the app on your account the first time connects the app to your account. Likewise, you can use the OAuth app authorization flow to have arbitrary end-users connect their own accounts to your app.
@peyo, in addition to what Greg said, when you only need to link your own account to the application, generating refresh token will work in the same way as long lived access token did before. Take a look here how you can get to a refresh token. 😉 You don't need to use it, just don't revoke it.
Hope this helps.
Ok, but please include it in the webhooks documentation and tutorial because I've lost 4-5 hours until I found that.
Check this out:
https://www.dropbox.com/developers/reference/webhooks#documentation
Nothing of what you posted here is mentioned in the docs.
Webhooks OverviewWith webhooks, your web app can be notified when your users' files change, rather than requiring your app to frequently poll Dropbox for changes. Every time a user's files change, the webhook URI you specify will be sent an HTTP request telling it about the changes. ...
@peyo, 🤔 What are your users? What file change are you expecting to be noted without users (even one)? There is no valid association without valid token of any kind (actually no user in this case). 😉 Read more carefully!
Hope this clarifies matter.
@peyo Thanks for the feedback!
Здравко, I am the user. I've configured webhook for my account. I don't care about other users. I think that it is clear enough for everybody that you have to update the documentation.
If someone follows the tutorial (like me). Then their webhooks won't trigger.
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!