Webhooks Explained: What They Are, How They Work and the Automation They Power
Webhooks are HTTP POST messages an app sends to your URL when an event happens. How they work, how to secure and retry them, and fintech and ERP use cases.

Webhooks are HTTP requests, usually a POST with a JSON body, that one application sends to a URL you register the moment an event happens, such as a payment succeeding, a ticket being created or a user being deactivated. Instead of your system asking another system for changes on a schedule (polling), the other system tells yours as soon as something changes.
That makes webhooks the usual starting signal for real-time automation: the event arrives, your system checks that it is genuine, and a workflow updates the ERP, the CRM or the ledger.
Where engini fits: engini works with webhooks at both ends. In Workflow Studio, a webhook trigger gives each workflow its own URL, so any system that can send a webhook can start a workflow that then reads and writes records in ERPs, CRMs, databases and systems behind your firewall. In Code, engini triggers watch connected apps and deliver each event to your own HTTPS endpoint, signed with HMAC-SHA256 and retried on failure. See Triggers in the engini docs.
Key Takeaways
- A webhook is an event notification sent over HTTP: the sender pushes a payload to your URL when something happens.
- Webhooks replace polling when you need to act on an event soon after it happens, and they cost less than asking an API for changes every few minutes.
- A safe receiver verifies the signature over the raw request body, answers with a 2xx status quickly, and does the real work afterward.
- Deliveries can be retried, duplicated or arrive out of order, so deduplicate on the event ID and never rely on arrival order.
- Retry rules differ a lot between providers: Stripe retries for up to three days in live mode, Plaid for up to 24 hours, Okta event hooks at most once.
What are webhooks?
Webhooks are automatic messages from one application to another, sent over HTTP when a specific event happens. You give the sending application a URL (your endpoint) and choose the events you care about; from then on, every matching event produces a request to that URL with the event's details in the body.
A few terms come up in every webhook integration:
Stripe describes the purpose plainly: webhook events help you "respond to asynchronous events, such as when a customer's bank confirms a payment, a customer disputes a charge, or a recurring payment succeeds" (Stripe docs).
How does a webhook work in a web application?
A webhook works as a short exchange between two servers: the sender posts the event, your application verifies it, stores it and answers, then processes it. Step by step:
- Register the endpoint. In the sending system, you enter your HTTPS URL and pick the event types. Stripe advises subscribing only to the event types your integration needs; GitHub says the same.
- An event happens. A customer pays, a record changes, an account is created.
- The sender posts the event. It sends an HTTP POST to your URL with a JSON payload and headers, including a signature.
- Your endpoint verifies the request. It recomputes the signature from the raw body and a shared secret, and rejects the request if they do not match.
- Your endpoint answers fast. It stores or queues the event and returns a 2xx status. Stripe says you must return a 200 "before updating a customer's invoice as paid in your accounting system" (Stripe docs). GitHub asks for a 2xx response within 10 seconds (GitHub docs).
- A background job does the work. It reads the queued event, updates the systems involved, and records the result.
- The sender retries failures. If your endpoint is down, times out or returns an error, most senders try again on a schedule.
The split between steps 5 and 6 is what keeps a receiver reliable. A request that waits for an ERP to post an entry can take longer than the sender allows, and a slow answer counts as a failed delivery even when your system did the work.
Webhooks vs APIs vs polling
A webhook is the sender calling you when something happens; an API call is you asking the sender for data when you decide to. Most real integrations use both: the webhook says that something changed, and an API call fetches the current state.
Tip: Treat a webhook as a notice, not the final truth. When it matters, such as before posting money, fetch the record from the source API and act on its current state.
What are webhooks commonly used for?
Webhooks are commonly used to tell another system that something happened so it can act right away: post a payment, update a deal, open a ticket, start a deployment or provision an account. The pattern is the same in every domain; only the events change.
Webhooks in fintech: the use cases that matter
In fintech, webhooks carry the events that move money and change balances, so the receiving side has to be both fast and careful. These are the use cases teams build first:
- Payment confirmation. A payment-succeeded event creates or updates the payment record in the ERP and applies it to the open invoice. For NetSuite, see how payments can be applied through the API.
- Failed and recurring payments. A failed-payment event starts dunning: a reminder, a retry, a flag on the customer in the CRM.
- Disputes and chargebacks. A dispute event opens a case, attaches the order and shipping records, and alerts the team before the response deadline.
- Bank and transaction data. Data providers send a webhook when there is new data to fetch. Plaid, for example, says to listen for the
SYNC_UPDATES_AVAILABLEwebhook to be alerted when new transactions are available from its/transactions/syncendpoint (Plaid docs). The receiver then calls the API for the new transactions. - Payouts and reconciliation. Payout events feed the reconciliation between the processor, the bank and the general ledger.
Two cautions apply to all of them. First, order is not guaranteed: Stripe says it "doesn't guarantee the delivery of events in the order that they're generated" and gives the example of invoice.paid arriving before invoice.created; use the API to retrieve any missing objects (Stripe docs). Second, a duplicate payment event must never post twice, so deduplicate before you write to the ledger.
Banks and credit unions add a third constraint: the core system, the ledger database or the file drop that should receive the result is often on the bank's own servers and accepts no traffic from the internet. The webhook has to land somewhere public, and the write has to reach the internal system without opening the firewall. More on this pattern in financial services.
How to secure a webhook endpoint
You secure a webhook endpoint by accepting only HTTPS, verifying every request's signature against the raw body, rejecting old timestamps, and keeping the signing secret safe. In order of importance:
- Verify the signature on the raw body. Stripe signs each event with an HMAC using SHA-256 in the
Stripe-Signatureheader and warns that "any manipulation to the raw body of the request causes the verification to fail" (Stripe docs). Parse the JSON only after the check passes. - Compare in constant time. Use a constant-time comparison for the computed and received signatures, as Stripe's manual verification steps require.
- Reject old requests. A timestamp inside the signed content stops replay attacks. Stripe's libraries default to a 5-minute tolerance; engini rejects anything outside a 300-second window.
- Use HTTPS only. Stripe requires HTTPS endpoints in live mode, and GitHub says your server should use an HTTPS connection.
- Allowlist source IPs where the sender publishes them. Stripe and Plaid both publish the addresses their webhooks come from.
- Rotate secrets with a plan. Stripe lets you keep an old secret active for up to 7 days while you update your receiver. engini's secret rotation has no overlap window, so update the receiver in the same change.
- Check the event type before acting. GitHub recommends checking the event type and action before processing the payload.
Note: Answer a bad signature with a 4xx and do nothing else. Do not return a 4xx for a temporary problem on your side, because many senders, including Plaid and engini, treat most 4xx responses as permanent and stop retrying.
Retries, duplicates and ordering
Every webhook sender retries failed deliveries differently, so read the rules for each one you depend on. As of November 2026, their documentation says:
Sources: Stripe, GitHub, Plaid, Okta, engini.
Retries mean duplicates. Deduplicate on the sender's event ID, never on the signature: Stripe tells you to log the event IDs you have processed, GitHub offers the X-GitHub-Delivery header, and engini sends x-engini-event-id (header names are not case-sensitive). engini's docs explain why the signature fails as a key: the timestamp is regenerated on every attempt, so a retry of the same event arrives with a different signature.
Testing and troubleshooting webhooks
You test a webhook receiver by sending it real, signed events before you go live, and you troubleshoot it by checking three places in order. For testing, Stripe's CLI forwards events to a local endpoint with stripe listen --forward-to, and a tunnel such as ngrok gives a laptop a temporary public HTTPS URL. engini can send a signed test event through the real delivery path and show what your endpoint answered, and can stream events to a laptop with no public URL (develop a trigger locally).
When an event seems to be missing, ask:
- Did the sender attempt delivery? Check its delivery log. Stripe shows each event as delivered, pending or failed, with the HTTP status of each attempt.
- Did your endpoint acknowledge it? Look for the 2xx in your server logs. Stripe and engini both count a redirect (3xx) as a failed delivery, and a slow answer fails with most senders.
- Did the background job finish? Check your queue and the target system for the record.
How engini uses webhooks
engini receives webhooks to start workflows, and delivers events from connected apps to your own endpoints as webhooks. The detail:
- Webhook trigger in Workflow Studio. Each workflow gets its own URL, with POST as the default method and an optional relative URL that carries values such as an item ID in the path. You paste a sample payload and engini builds the output schema, so later steps can map its fields. The workflow answers 200 by default; a Send Webhook Response step sets a custom status code, body and headers, including a redirect (webhook docs).
- App triggers built on webhooks. Some app triggers receive the provider's own webhooks: a Jira issue created or updated, an Okta event hook, and Salesforce outbound messages.
- Triggers in Code. A trigger watches a connected app and engini posts each event to your HTTPS destination with an
x-engini-signatureheader (HMAC-SHA256 over the timestamp and the raw body), anx-engini-event-idheader and the attempt number. Events are kept 30 days, every attempt is in the event log, and a dead-lettered event can be replayed. Both SDKs include a verification helper (receive trigger events on a webhook). - What happens after the event. The workflow creates, reads, updates and deletes records in ERPs such as NetSuite, SAP S/4HANA and SAP Business One, CRMs such as Salesforce and HubSpot, databases, and files. Through the on-prem agent, which opens connections outbound only, it also reaches databases and file drops on your own servers: the webhook lands in the cloud, and the write reaches the internal system without inbound ports.
- A record of every run. Run history shows the incoming request for webhook triggers and the outgoing request for each action.
When you do not need engini: if you receive one provider's webhooks into your own application and already run a receiver with a queue, verification and deduplication, keep it. If the sender and the target system have a native integration that covers your case, use that. engini is useful when the event has to reach several systems, a system of record such as an ERP, or a system behind your firewall, and you want the retries, logs and connections handled in one place. For event-driven sync between a CRM and an ERP, see Salesforce change data capture to NetSuite, and for how events start agent steps, agentic workflows.
Frequently Asked Questions
What is a webhook in simple terms?
A webhook is a message one app sends to another app's URL when something happens. It is like a text alert between systems: the event, its details, and a signature that proves who sent it.
How is a webhook different from an API?
With an API, your system asks for data when it wants it; with a webhook, the other system sends data when an event happens. Most integrations use a webhook to learn of a change and an API call to fetch details.
What are webhooks commonly used for?
Webhooks are commonly used to trigger an action in one system when an event happens in another. Examples include recording a payment in the ERP, creating an order from a closed deal, routing a new ticket and removing access for a departed employee.
What fintech use cases do webhooks enable?
Webhooks let fintech systems react to money events as they happen: payment confirmations, failed recurring payments, disputes, new bank transactions and payouts. Each one can update the ERP, the CRM or the reconciliation without waiting for a batch job.
How do you secure a webhook endpoint?
Accept only HTTPS, verify the signature against the raw request body with a constant-time comparison, and reject requests with old timestamps. Then deduplicate on the event ID and keep the signing secret out of code.
What happens if my webhook endpoint is down?
Most senders retry, but for different lengths of time. Stripe retries for up to three days in live mode, Plaid for up to 24 hours, and Okta event hooks at most once, so check each sender's rules and replay what was missed.