DEV Community

Discussion on: Explain webhooks to me like I'm five

Collapse
 
ben profile image
Ben Halpern

Awesome explanation. I think webhooks have a scary vibe at first, but it's really just an arrangement with some application to send a POST request to some URL. Maybe that's your app, or maybe it's a URL that Slack, for example, gives you so it can post a message in your channel.

It's really not a lot different from any similar transaction within your own app. On dev.to, we have it arranged that any time someone creates a comment, they hit the /comments endpoint with a POST request. If a second app wanted to do something with the comment creation process as well, they'd tell us to also send a request their way when we're done.