Skip to content
BENIBIX Learn

Webhook

Development🔌 APIsAPI Basics

Also known as Webhooks, HTTP Callback, Reverse API

A web address for news. Another app calls it when an event takes place.

Think of it like

Think of it like a doorbell. Instead of checking the door all day, you wait for it to ring.

Example

Emma gives a payment service her webhook address. A customer pays, and seconds later her shop gets a POST that says paid.

Why it matters

Apps can act at once. They do not waste thousands of requests asking if anything is new.

Definition

A webhook is a web address another service calls when something happens. That service sends a POST request to your address with the details. A payment service can tell your shop the moment a payment goes through. You no longer have to keep asking if anything has changed. Your server must answer fast and check that the message is real.

Common mistake

Trusting every message that comes in. Check its signature, or anyone can fake a payment.

Key takeaways

  1. 1
    They call you. When the event happens.
  2. 2
    A POST to your address. With details of the event.
  3. 3
    Check it is real. Verify the signature.

Compare