ЗамыселЪ Глеба Киренкова

Concept by Gleb Kirenkov

Business ·

A webhook is an event someone must own

A webhook lets one system tell another that something important has happened. Sending a message, however, does not mean the work is done. A reliable integration starts by defining who produced the event, what the receiver must do and how both sides will recognise a failure.

An event instead of a repeated question

Consider a website enquiry form and a CRM. Without a webhook, the CRM or an intermediary checks the website periodically for new enquiries. With a webhook, the website sends a message to a configured address when an enquiry is created.

That is event-driven communication. The sender knows when the change happens; the receiver decides how to react. A webhook does not replace an API altogether: it may announce a change while the receiver fetches the details through an API. Keeping those roles separate makes the integration clearer.

A message needs a contract

Providing a URL and switching a feature on is not enough. Both sides must agree on the event type, identifier, timestamp, fields and schema version. In particular, “enquiry created” and “enquiry confirmed” are different business actions.

The contract also defines what a successful response means. A delivery acknowledgement does not prove that a manager has been assigned, a customer has received an answer or a record has been written correctly. Each event needs an explicit business outcome.

Verify authenticity before acting

A webhook endpoint is usually reachable from outside. Someone who knows its address may be able to send a similar request. The receiver therefore checks the sender's signature or other supported verification mechanism before processing the data.

Keep the secret on the server, away from public website code. If the event concerns personal data, reduce the payload as well: an enquiry ID may be enough, with details fetched from a protected system after access has been checked.

The same event may arrive twice

A network connection can fail or a response can get lost, prompting another delivery. If every arrival creates a new record, one order becomes two. Give the event a stable identifier and make the business action safe to repeat.

Simply ignoring every repeat is not sufficient: the first attempt may have completed only part of the work. A dependable receiver records its progress, resumes unfinished steps and distinguishes a completed result from a failed one.

Separate acknowledgement from long-running work

The receiver should accept and record the message promptly. Longer operations — writing to several systems, generating a document or calling an AI service — belong in a separate process with its own retries and error record.

Otherwise the sender may time out and deliver again after some work has already happened. A queue or another durable processing mechanism is useful when losing or repeating an action has a real cost, not as an architectural fashion.

Observability completes the integration

A production webhook needs a record of arrivals, authenticity checks, processing status and a way to retry failed work. It also needs an owner: who is told when an enquiry fails to reach the CRM or an order status is not updated?

Before launch, test more than the happy path. Try a duplicate, an invalid signature, a temporarily unavailable CRM, a changed field and an event arriving out of order.

Start with one business event

A webhook is useful when a change needs timely action elsewhere. If data is only needed for an occasional report, a scheduled exchange may be simpler. The choice depends on the cost of delay, event volume and consequences of failure.

Within the Method, I begin an integration with one event and its required outcome: for example, an enquiry must reach the responsible person. The schema, access rules, repeat handling and monitoring follow from that. This can be a first step towards automating enquiries, CRM work or another internal digital tool.

A tool for your workflow

If work depends on spreadsheets, manual transfers and disconnected systems, we can examine the process, roles and data to define a useful first version of an internal tool.

Internal systems and automation · Discuss the task