Justine Acosta
JUSTINE ACOSTA · GMT+8 ·
All articles
BLOG / ARTICLE

APIs, Webhooks and Integrations, Explained Without the Jargon

How your tools talk to each other, the five ways integrations break, and the questions to ask before you connect anything.

6 min readAPIsIntegrationsAutomation

"Can it connect to our CRM?" is one of the first questions on almost every project. The answer is usually yes, and the words that come with it are API, webhook and integration. They get used as if everyone knows what they mean. Most people nod along.

You don't need to build these things to make good decisions about them. But knowing what they are, and the handful of ways they go wrong, helps you ask the right questions and spot the difference between an integration that works on demo day and one that still works a year later.

The API: how one system asks another

An API is a set of doors a piece of software opens for other software. Your CRM has a screen for people, where you click "New contact" and type a name. Its API is the same capability for programs: a defined way to say "create a contact with this name and this email" and get a clear answer back.

Almost every modern business tool has one: CRMs, email platforms, payment providers, booking systems, accounting tools. The API decides what's possible. If a tool's API lets you create contacts but not update them, no amount of clever building will update them.

Two things to know about APIs:

  • They need a key. Every call carries a credential that proves who's asking. That key is as sensitive as a password, and it should live in a secure settings store, never in a spreadsheet or an email.
  • They have limits. Most APIs cap how many requests you can make per minute or per day. A well-built integration stays under the cap and slows down gracefully when it's close.

The webhook: how a system tells you something happened

An API is you asking. A webhook is the other system telling you, the moment something happens.

When a customer pays, your payment provider can call a web address you gave it and say "payment succeeded, here are the details". When a form is sent, the form tool can do the same. You don't have to keep checking; the news comes to you.

The alternative is polling: checking every few minutes whether anything new has appeared. It works, but it's slower and wasteful, like refreshing your inbox all day instead of getting a notification. Where a tool offers webhooks, they're almost always the better choice.

The integration: the part in the middle

An integration is everything that connects the two. A webhook arrives, something reads it, decides what to do, and calls one or more APIs to do it. That middle part might be a flow in n8n, Zapier or Make, or code in your own app.

For example: a webhook says a new quote request arrived. The integration checks the details, looks up the rate card, creates the contact in the CRM through its API, drafts a reply, and sends it to a person to approve. Each arrow in that sentence is an API call or a webhook.

Five ways integrations break

Here's what separates a demo from a dependable integration. These are the questions worth asking anyone who builds one for you.

1. The other system is down. Every service has bad minutes. A good integration retries a failed call a few times, with a pause between attempts, before giving up. Without retries, a two-minute outage at the wrong moment silently loses an order.

2. The same event arrives twice. Webhook senders often deliver the same event more than once, on purpose, to make sure you got it. If the integration isn't ready for that, one payment creates two orders, or one form sends two emails. The fix has a technical name, being idempotent: processing the same event twice gives the same result as processing it once. I go deeper into this for payments in what a Stripe integration really costs.

3. Events arrive out of order. "Subscription cancelled" can arrive before "subscription renewed" if the network delays one of them. A careful integration checks the current state in the source system rather than trusting the order things arrived in.

4. Someone fakes a webhook. A webhook address is just a web address. Anyone who finds it could send fake events. Good integrations verify the signature most senders attach, so only real events from the real system are accepted.

5. It fails and nobody knows. This is the one that hurts most. An integration that breaks quietly can run for weeks before someone notices the CRM has stopped filling up. Every integration needs an error path that tells a person.

What a good error path looks like

The build plan page on this site, written for a fictional moving company, has a dedicated error handler that every workflow reports to. When a step fails, it logs which workflow failed, at which step, with what message and a link to the run. Then it alerts the operations team in their group chat, with urgent problems pinned so they can't be missed.

The same plan has a small helper with the opposite job: before any message goes to a customer, it checks the time and holds the message until business hours. Its stated outcome is the kind of detail that makes an integration feel professional: nobody gets a message at 2 am.

That's the standard to aim for. Failures are expected; silent failures aren't acceptable, and neither are customer messages at the wrong moment.

Questions to ask before you connect anything

When you're scoping an integration, or reviewing one someone else built, these questions cover most of the risk:

  • Does each tool have an API that does what we need? Check the specific actions, not just the logo on the integrations page.
  • Does the source system send webhooks for the events we care about, or will we have to poll?
  • What happens if a call fails? Is there a retry, and what happens after the last one?
  • What happens if the same event arrives twice?
  • Where do the keys live, and who can see them?
  • Who gets told when something breaks, and how?
  • Is there a log we can check when someone asks "did that go through?"

If the person building it has a clear answer to each, you're in good hands. If several get a shrug, the integration will work right up until the day it matters.

The short version

An API is how your software asks another system to do something. A webhook is how another system tells yours that something happened. The integration is the logic in between. And the quality of an integration lives almost entirely in how it handles the unhappy paths: outages, duplicates, fakes and failures.

If you have tools that should be talking to each other and aren't, tell me what they are on the contact page. I'll tell you what's possible with their APIs, and what it would take to connect them properly.