Questions tagged [webhooks]

Webhooks are a mechanism to listen and react to events using an HTTP callback: an HTTP POST that occurs when an event occurs.It is an alternative to HTTP polling.

What is it?

Webhooks are a mechanism to listen and react to events using an HTTP callback: an HTTP POST that occurs when an event occurs.It is an alternative to HTTP polling.

Webhooks are a mean to extend the functionality of a service and a way to receive valuable information in near real-time, rather than continually polling a service for that data and receiving nothing valuable most of the time.

How does it work?

A web application implementing WebHooks will POST a message to a user-specified URL when certain events occur. For example, GitHub implements post-receive webhooks that allow users to integrate with a wide variety of services such as Twitter, Basecamp, or a custom script created by the user.

Related tags

  • Use for local hooking that does not use
  • Use for hooking of git events. Use together with only for git services that use webhooks as a replacement for githooks.
  • Use for webhooks used on Github as alternative to githooks.
  • Prefer more specific tags for questions about the use of webhooks in the context of spefic APIS, such as , , etc...

See also

4650 questions
20
votes
3 answers

Stripe Webhook on Rails

I know there is another question that exists similar to this one but I don't think it was asked/answered very well. Basically I have a working rails app where users can sign up for my subscription, enter credit card information, etc. That's all…
Zach
  • 1,233
  • 13
  • 19
20
votes
5 answers

How to get notified of a new lead in SalesForce?

I want to get notified when a new lead is created in Salesforce. Is there something like webhook in Salesforce or some other way to achieve this?
Ajmal VH
  • 1,691
  • 1
  • 13
  • 27
19
votes
3 answers

Cannot find Incoming Webhook connector in Microsoft Teams

I had configured an Incoming Webhook on one of our Microsoft Teams channels, but noticed it stopped working recently, and also I am no longer able to find the Incoming Webhook in the list of connectors: What command would I need to have our…
JoeGaggler
  • 1,207
  • 1
  • 13
  • 28
19
votes
4 answers

Stripe .net "The signature for the webhook is not present in the Stripe-Signature header."

I am using Stripe.net SDK from NuGet. I always get the The signature for the webhook is not present in the Stripe-Signature header. exception from the StripeEventUtility.ConstructEvent method. [HttpPost] public void Test([FromBody] JObject…
DavidT
  • 322
  • 3
  • 10
19
votes
3 answers

Testing subscription renewals on Stripe

I am using Stripe to test how my code would react to recurring subscription renewal payment attempts for a product we are working on (need to test success, failure ...etc.). And it seems that most answers on StackOverflow suggest creating a…
Greeso
  • 7,544
  • 9
  • 51
  • 77
19
votes
3 answers

Set end date when setting up Stripe subscription

In my application users are subscribed (and billed) each month for 24 months. Is there any way to have Stripe automatically end the subscription after the 24th month when I initially create the subscription?
Tyler McGinnis
  • 34,836
  • 16
  • 72
  • 77
18
votes
1 answer

How to Test Stripe Webhooks with Mock Data

I'm trying to write a unit test that posts a mock event to my stripe webhook. I went and pulled an event from my logs and tried sending that with the test mode enabled, but I (somewhat predictably) got an error: a similar object exists in live…
mlissner
  • 17,359
  • 18
  • 106
  • 169
18
votes
1 answer

What is a Webhook and why should I care?

Best I could find was this wiki entry I I thought "surely there must be more to it than this". Am I missing something?
Clay Nichols
  • 11,848
  • 30
  • 109
  • 170
17
votes
1 answer

Which properties does `github.event` in a GitHub Workflow have?

When using GitHub Actions, it is possible to access contexts in an expression. One of the contexts is the github context. It has a property github.event, which is an object. What properties does the github.event object have? How can I distinguish…
soerface
  • 6,417
  • 6
  • 29
  • 50
17
votes
2 answers

How do I create a webhook?

So I am creating a click2call app, using Tropo and Nexmo, and at this point, I need help setting a webhook. They both provide a place to point a webhook, but now, I don't understand what to include there. Is it a php file? or a json? I've already…
ines pelaez
  • 473
  • 1
  • 3
  • 10
17
votes
8 answers

Clear "pending_update_count" in Telegram Bot

I want to clear all pending_update_count in my bot! The output of below command : https://api.telegram.org/botxxxxxxxxxxxxxxxx/getWebhookInfo Obviously I replaced the real API token with xxx is this : { "ok":true,"result": { "url":"", …
Hamed Kamrava
  • 12,359
  • 34
  • 87
  • 125
16
votes
5 answers

How to verify a post-receive hook request actually came from github?

Github offers a way to let a URL know when a project has been updated using webhooks. How do I verify that a post sent to my server's post-receive hook actually came from github? Should I check the IP address of the sender or can I send an auth…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
16
votes
3 answers

Node and Express: How to implement basic webhook server

I'm having a surprisingly hard time finding tutorials. I'm new to webhooks and have not used or seen them, beyond some basic descriptions of how they're supposed to work. Our use-case for this is updating users of our APIs when there are new…
Tsar Bomba
  • 1,047
  • 6
  • 29
  • 52
16
votes
2 answers

Gitlab to Jenkins webhook with parameters

I'm trying to build a job on my jenkins using Gitlab webhook when pushing into a specific branch. The only issue I have is that the jenkins job is parameterized. The parameter is the branch name. Is there an option to add the branch name (its a…
Noam Ma-Yafit
  • 256
  • 1
  • 3
  • 7
16
votes
6 answers

Facebook Messenger API: Trouble setting up a webhook

I am trying to set up a web hook for the new Facebook Messenger bot platform on my PHP webserver and am receiving this error: The URL couldn't be validated. Response does not match challenge, expected value = '364011207', received=' …
Shane
  • 691
  • 1
  • 6
  • 12