Definition

Webhooks are like APIs in reverse. With an API, you make requests to an API provider. Webhooks reverse this flow: Instead of you making a request to the API provider, you set up another endpoint and the webhook provider makes a request to this endpoint when it’s ready.

Implementation

  • Webhooks are taken by some services like paypal etc where they will take your endpoint and send the information as webhook.
  • GitHub lets you configure webhooks for your repositories, which are events that send HTTP requests when events happen. For example, you can use a webhook to notify you when someone creates a pull request or pushes new code.

Applications

Instagram photos that automatically upload to Twitter accounts.

  • A connected doorbell configured to flash certain lights inside a home as it rings.
  • Sending GitHub update notifications to Slack or Discord channels as messages.
  • Are Webhooks effective for chat applications.

Questions

  • Q. Can webhooks be send only to the API endpoint and not frontend?
  • Q. Why don’t Postman has Webhooks? Ans.