
HiringsAI blog
A webhook is a doorbell for software: instead of you checking whether something happened, the other app rings your URL when it does. This tutorial reads four official pages in plain terms: GitHub on what a webhook is and why not to poll, the trigger-action tool on catching one with a pasted URL, the node-based workflow tool on its test and production URLs, and Stripe on proving a call is real, answering fast and surviving retries.
A webhook is a URL you give another app.
A webhook is a URL you give another app. GitHub's page says webhooks deliver notifications to an external web server whenever certain events occur, and describes them as the opposite of polling: you express interest once, when you create the webhook, instead of calling an API intermittently. The trigger-action tool turns that into a form field: pick Catch Hook, copy the URL it shows, paste it into the other app's webhook settings. The node-based workflow tool gives you two such URLs, one for testing and one for production. Stripe adds the rules that matter once real money is behind the call: check the signature, answer with a 2xx quickly, and expect retries and duplicates. Each claim below comes from its own page.
GitHub's About webhooks page says webhooks let you subscribe to events in a software system and automatically receive a delivery of data whenever those events occur.
GitHub's About webhooks page says webhooks let you subscribe to events in a software system and automatically receive a delivery of data whenever those events occur. When you create one you specify a URL and the events; when a subscribed event occurs, GitHub sends an HTTP request with data about the event to that URL, and if your server listens there it can take action. Listed uses on the page include triggering a continuous integration pipeline, sending a notification to Slack or Discord, updating an external issue tracker, deploying to a production server and logging events for audit.
On the choice between webhooks and polling, the page lists three advantages for webhooks: they take less effort and fewer resources than polling an API, they scale better (many API calls can hit a rate-limit quota quickly), and they allow near real-time updates. It also says that if you only need information once or intermittently, or from a small set of resources with no plans to scale, calling the API is fine. A plain-language rule drawn from that: poll when you rarely need it, subscribe when you need to know the moment it happens.
The trigger-action tool's Trigger workflow workflows from webhooks page lists the steps.
The trigger-action tool's Trigger workflow workflows from webhooks page lists the steps. Add Webhooks by the trigger-action tool as the trigger, pick the event, and on the Test tab the trigger-action tool shows your webhook URL to copy. Then, in the app you want to connect, find its webhooks settings, add a new webhook connection, paste the URL and save. To test, add something new in that app, return to the workflow and click Test trigger. The page says Catch Hook is the best option for most webhooks; it parses the request body. Catch Raw Hook leaves the body unparsed, includes headers and has a 2MB maximum.
Two details on the page are easy to miss. First, if the workflow is turned off or deleted, the trigger-action tool returns a 404 for incoming requests, but with a system update delay of up to several hours during which the URL still returns 200. The URL changes only if the workflow is transferred to another user, because it contains the owner's the trigger-action tool ID, so you must update the sending app in that case. Second, the page says the trigger-action tool will send a 200 response by default and that adding silent/ to the URL on Catch Raw Hook removes the response.
The page also documents sending more than one event in one request: post an array of JSON objects and the trigger-action tool triggers the workflow once per object. It says webhooks may delay passing data on when many requests arrive at once and points to a separate rate-limits page, which was not reviewed here.
The node-based workflow tool's Webhook node page says the node is a trigger that creates webhooks to receive data from apps and services, and that it can also return data produced at the end of the workflow, which makes it useful for building something like an API endpoint.
The node-based workflow tool's Webhook node page says the node is a trigger that creates webhooks to receive data from apps and services, and that it can also return data produced at the end of the workflow, which makes it useful for building something like an API endpoint. It has two URLs. The test URL is registered when you select Listen for Test Event or Execute workflow (if the workflow is not active) and shows incoming data in the workflow. The production URL is registered when you publish the workflow, and does not show data in the workflow; to see a production run you open the Executions tab for that workflow.
The page lists the supported HTTP methods (DELETE, GET, HEAD, PATCH, POST, PUT), a webhook maximum payload of 16MB that a self-hoster can change with the WORKFLOW TOOL_PAYLOAD_SIZE_MAX environment variable, and authentication options: Basic auth, Header auth, JWT auth, the node-based workflow tool User Auth (OAuth2) and None. The default path is randomly generated to avoid conflicts, and you can set your own.
Stripe's webhooks page says to register a publicly accessible HTTPS URL (it allows an HTTP endpoint while you develop locally, and suggests a tunnelling tool or the Stripe CLI for local testing).
Stripe's webhooks page says to register a publicly accessible HTTPS URL (it allows an HTTP endpoint while you develop locally, and suggests a tunnelling tool or the Stripe CLI for local testing). Your endpoint should accept POST requests with a JSON payload, verify the request using the Stripe-Signature header and the whsec_ signing secret, and return a 2xx quickly, before any complex logic that might time out. The page says Stripe needs the raw request body for verification, and any framework manipulation of it makes verification fail. Without verification, it warns, an attacker could send fake events to trigger actions such as fulfilling orders; it recommends using both IP allowlisting and signature verification.
For failure, the page documents automatic retries for up to three days with exponential backoff in live mode, and three retries over a few hours for sandbox events. You can resend an event by hand from the Dashboard (up to 15 days after the event) or with the Stripe CLI (up to 30 days); a manual resend does not cancel the automatic retries. It says Stripe does not guarantee events arrive in the order generated, that endpoints may occasionally receive the same event more than once, and recommends logging the event IDs you have processed. It also recommends handling events with an asynchronous queue and listening only to the event types you need.
Combining the four pages, in our words: test with a test URL before you publish; confirm the sender can be verified and verify it where the vendor documents how; answer quickly and do the real work after; and design for repeats.
Combining the four pages, in our words: test with a test URL before you publish; confirm the sender can be verified and verify it where the vendor documents how; answer quickly and do the real work after; and design for repeats. These are our reading of what the four pages describe, not a rule any one vendor states for every service. Whether a webhook sender you use signs its requests, or retries, is a question for that sender's documentation, which these pages do not answer.
Behavior is scoped to these pages as of November 29. The checklist is our synthesis. The trigger-action tool's rate-limits page and GitHub's best-practices page were linked from the vendors' documentation and not reviewed.
Behavior is scoped to these pages as of November 29. The checklist is our synthesis. The trigger-action tool's rate-limits page and GitHub's best-practices page were linked from the vendors' documentation and not reviewed.
HiringsAI receives events from your recruiting tools and starts the right workflow, with every delivery on the record.
Get started
Long-form guides on building, automating and AI computing.