You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
eight-fives
4 years agoExplorer | Level 3
Dropbox Python API Webhooks
Im currently working on a application were i need to implement webhooks from my dropbox to my local pc. Unfortunatly im having problems with getting my program to work with the webhooks. My proce...
Greg-DB
4 years agoDropbox Staff
When you register a webhook URI, Dropbox will send the webhook notifications (both the verification request and the notifications requests) to the server identified by the URI you supply. In your case, you supplied a site on 'webhook.site', so those requests are sent to the servers at 'webhook.site', which are maintained by the owners of 'webhook.site'.
Separately, I see you're trying to run a Flask web app in your IDE. This would run locally, on your computer (i.e., on your localhost), not on the webhook.site servers. The requests sent to webhook.site aren't connected to your locally running code.
I also see that you are attempting to connect your webhook.site site to your own code using the '@app.route' decorator, but that would only define the routes in your own web app; it wouldn't connect it to the actual webhook.site site.
Dropbox webhook notifications are sent by the Dropbox servers, so they can only be sent to publicly accessible Internet addresses. Typically, when running a web app locally like you are, that web app is not publicly accessible. To be able to run your own code interactively for handling webhooks, you'd need to deploy your web app online and get a public address that you could register as your webhook URI. (Alternatively, there are some tools that would let you get an address to connect to your local app for testing, such as 'ngrok', but we can't provide support for third party tools themselves like this.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf 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!