What are webhooks?

A webhook is like a friendly doorbell that tells someone at home when something exciting happens outside.

Imagine you're playing in your backyard, and you have a special friend who lives next door. Every time the mailman comes by with a letter for you, you ring a bell, that’s like telling your friend, “Hey, there's a new letter here!” Your friend then runs over to get it because they know something fun just happened.

A webhook works in a similar way. It’s like that doorbell, when something happens on one website (like someone signs up for a newsletter or buys a toy), the webhook rings a bell on another website, telling it, “Hey, something happened over here!” The second website then does something cool because of that message, like sending a welcome email or adding the new toy to your shopping cart.

How Webhooks Work

  • When an event happens (like someone clicking "Buy" on a game), the webhook is triggered.
  • It sends a message across the internet, just like you ringing the bell.
  • The other website gets that message and reacts to it, making things happen automatically.

Take the quiz →

Examples

  1. A webhook is like a doorbell that rings when someone arrives, it tells the house there’s a visitor.
  2. When you post a photo on social media, a webhook might tell your friend's app to show you a notification.
  3. Imagine your phone sending a message to your watch every time you receive a text.

Ask a question

See also

Discussion

Recent activity