Forum Discussion

peyo's avatar
peyo
Explorer | Level 4
4 years ago

Dropbox webhooks for scoped app are not working properly

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 ?

6 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    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.

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    4 years ago

    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.

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    4 years ago

     Webhooks Overview

    With 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's avatar
    peyo
    Explorer | Level 4
    4 years ago

    Здравко, 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.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!