शब्दकोश · इंटरनेट और वेब

Webhook

A webhook is an HTTP callback in which one system sends a POST request to a URL you provide whenever a specific event happens.

अपडेट: अक्टूबर 6, 2026

A webhook is a way for one application to notify another in real time by sending an HTTP request, usually a POST with JSON data, to a URL when an event occurs. It is often described as a reverse API.

Why it matters

Instead of polling a service every minute asking if anything changed, you receive a message the moment it does. Payment providers, code hosts and monitoring tools use webhooks to trigger fulfillment, builds and alerts. The receiving endpoint must be available and secure.

Log every delivery with its ID and response code so you can replay failures later.

Example

POST /hooks/payments HTTP/1.1
Content-Type: application/json
X-Signature: sha256=...

{"event": "payment.succeeded", "id": "pay_123", "amount": 4900}

Your endpoint should reply with a 2xx status quickly.

Common mistakes

  • Not verifying the signature, letting anyone post fake events.
  • Doing slow work before replying, so the sender times out and retries.
  • Assuming each event arrives once; handle duplicates and retries.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.