๐—ช๐—ต๐—ฎ๐˜ ๐—œ๐˜€ ๐—” ๐—ช๐—ฒ๐—ฏ๐—ต๐—ผ๐—ผ๐—ธ

Webhooks sound scary. They are simple.

You wait for a message. You open your app every 30 seconds. This is like an API. You keep asking for updates.

You close your app. You live your life. A notification pops up. You did not ask. The app told you. This is a webhook.

A webhook says: Do not check. I will tell you when it happens.

Real world examples:

Scenario: Someone buys a hoodie. The store receives a POST request. The store shows order confirmed. No refreshing needed.

The main difference: API: Are we there yet? Webhook: I will tell you when we arrive.

Source: https://dev.to/tanyajha12/what-is-a-webhook-explained-the-way-i-wish-someone-had-told-me-1o10