Forum Discussion

peyo's avatar
peyo
Explorer | Level 4
3 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 ?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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

      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.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 3 days ago
217 Following

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!