What Is API Integration? How It Works, Examples and How to Plan One

API integration connects your website or app to the other software your business runs on, so data moves between them without anyone retyping it. A contact form that creates a lead in your CRM is an API integration. So is a payment that marks an invoice paid in your accounting software.

Our example is an invented accounting firm whose website takes inquiries, books consultations and collects invoice payments.

Key takeaways

  • API integration links 2 systems through their APIs. One can then send data, fetch data or react to an event in the other.
  • Requests carry an API key or an OAuth token, and webhooks tell your site when something happens.
  • A business website usually connects a CRM, payments, email marketing, booking, accounting and analytics.
  • Built-in connectors and integration platforms suit simple flows. Custom code fits two-way syncs, high volumes and sensitive data.
  • Plan for failure: retries that wait longer each time, no duplicates, a queue for failed jobs and an alert to a named person.
  • Integrations rarely break because of their code. A key, a field or a setting changes around them, and a test after every change catches it.

What API integration does

API integration is a connection between 2 pieces of software through their APIs. One system can send data to the other, ask it for data or start an action there, with no one copying anything by hand.

An API, short for application programming interface, is a set of features and rules that lets other software work with a program, as opposed to a human user interface. MDN calls it a contract between the application that offers it and the software that uses it (MDN).

Most integrations do one of 3 jobs. Here’s each one on the accounting firm’s website.

  • Send data: the contact form creates a lead in the CRM.
  • Fetch data: the booking page asks the calendar for free times.
  • React to an event: the payment provider reports a paid invoice, and the site marks it paid in the accounting software.

You’ll also hear the term web APIs. MDN separates the browser APIs built into your browser from third-party APIs that come from elsewhere on the web, and integration uses the second kind (MDN).

First-party vs third-party APIs

A first-party API is one your own team builds and runs, such as the API your web app offers its mobile app. A third-party API belongs to another company. MDN describes third-party APIs as ones located on third-party servers that give you access to the provider’s functionality (MDN).

What differs First-party API Third-party API
Who builds and runs it Your team, or developers you hire Another company, on its own servers
Who decides changes You, when it suits your product The provider, with notice in its changelog
Limits What your own servers can handle The provider’s rate limits for your plan
When it fails Your team can read the logs and fix it You wait for the provider while your site copes
Examples The API behind your web app and its mobile app Payments, CRM, email marketing, maps and calendars

Most business websites only use third-party APIs. You need a first-party API when your own product does, such as a web app with a mobile app or partners who connect to your data.

With a third-party API, the provider sets the pace. HubSpot reserves the right to change or deprecate its APIs over time and announces updates in advance in its developer changelog (HubSpot docs). Someone on your side has to read those notices.

How API integration works

Every integration combines the same 4 parts. There are requests and responses, a way to prove who’s calling, events that arrive on their own and limits on how much you can ask.

Requests and responses

Most web APIs work over HTTP, the protocol your browser uses to load pages. Your server sends a request to an address on the provider’s side, called an endpoint.

Its method says what it wants. GET asks for data, while POST sends data to be processed, such as the fields of a form (RFC 9110).

The provider answers with a status code and usually some data in JSON, a lightweight text format (RFC 8259). The code tells your server how the request went.

  • 200: the request worked.
  • 201: something was created.
  • 401: the credentials were missing or refused.
  • 503: the service can’t take requests for now.

Most APIs follow REST, the style Roy Fielding described in 2000. It organizes an API around resources, anything that can be named, such as a contact or an invoice (Fielding, 2000).

Other styles serve other jobs. GraphQL lets an app query exactly what it needs (GraphQL), and WebSockets keep a two-way connection open (RFC 6455).

REST still leads by far. Postman’s 2025 survey asked over 5,700 developers, architects and executives which styles they use, and REST came first at 93% (Postman, 2025).

The API styles teams use. Under the title, in gray: Share of over 5,700 developers, architects and executives. Four bars with the value next to each: REST 93%, in ink. Webhooks 50%, WebSockets 35% and GraphQL 33%, in gray.
Source: Postman, 2025

API keys and OAuth

The provider has to know who’s calling. The simplest proof is an API key, a secret string your server sends with each request. MDN’s advice is to protect API keys like passwords and keep them out of front-end code, where any visitor could extract them (MDN).

Many providers also let you limit what a key can do. Stripe’s restricted keys carry only the permissions you choose, which limits the damage if one leaks (Stripe docs).

OAuth 2.0 is the standard for access that someone approves. It lets an application obtain limited access to a service, either for the account’s owner after an approval step or on its own behalf (RFC 6749).

You’ve seen it as the screen that asks you to let an app connect to your account, with only the permissions it asked for. HubSpot, for one, requires its apps to use OAuth or, for an app installed in a single account, a static token (HubSpot docs).

Webhooks

A request runs when your site decides. A webhook runs when something happens on the provider’s side, which then sends a POST request with the event to an address on your site. Stripe uses webhooks for events that happen later, such as a customer’s bank confirming a payment or a recurring payment going through (Stripe docs).

Request or webhook. Under the title, in gray: Two ways data moves between the firm’s website and its services. Two panels, each headed by a black pill. API request: your site asks, with the note Runs when your site decides. A Website tile with an arrow to a CRM tile, labeled POST /contacts with the API key, name, email and service, and an arrow back: 201 Created, with the new contact’s ID. Webhook: the service tells you, with the note Runs when something happens. A Payment provider tile with an arrow to a Website tile, labeled POST /webhooks/payments, invoice 2041 paid, with a signature, and an arrow back: 200 OK, received.

Webhooks need care on your side. Stripe’s docs ask your endpoint to check the signature, which proves the event came from Stripe, then to reply with a 2xx code before any slow work. Their example is to return a 200 before you mark the invoice paid in your accounting system.

Stripe retries a failed delivery for up to 3 days in live mode. It may send the same event more than once and doesn’t guarantee the order, so log each event’s ID and skip repeats (Stripe docs).

Rate limits

Every provider caps how much you can ask. Too many requests in a given time get a 429 status code, and the response may include a Retry-After header that says how long to wait (RFC 6585). The caps vary widely.

  • Stripe: 100 requests per second in live mode and 25 in a sandbox (Stripe docs).
  • HubSpot: 100 requests every 10 seconds per app and 250,000 a day per account, for privately distributed apps on Free and Starter (HubSpot docs).
  • Mailchimp: 10 simultaneous connections per user on its Marketing API (Mailchimp docs).

A contact form never comes close. A nightly sync of thousands of records can. Send those in batches, cache what rarely changes and use webhooks instead of asking for updates over and over.

Integrations a business website usually needs

Our clients ask for the same few integrations again and again. A form that sends each inquiry to a CRM comes first, followed by online payments and subscriptions, analytics and email sign-ups. Booking joins them whenever the business sells its time, as the accounting firm does with its consultations.

Most business websites connect to the same 6 kinds of service. Here’s what each connection carries on the accounting firm’s site.

One website, 6 connections. Under the title, in gray: An invented accounting firm and what each connection carries. In the center, a card for the firm’s website with its logo and 4 parts: Contact form, Booking, Invoice payment and Newsletter sign-up. Lines with arrows run from those parts to 6 service cards. Left: CRM, a new lead with name, email, phone, service and message, from the contact form. Calendar, appointment out with date, time and client and free times back, both ways from booking. Payment provider, invoice 2041 and amount out and paid or failed back, both ways from invoice payment. Right: Analytics, events for form sent, booking made and invoice paid. Accounting, invoice 2041 marked paid, with amount and date, from invoice payment. Email marketing, a subscriber with email, consent and date, from the newsletter sign-up. Under the map: Each line is one integration, with its own data, direction and owner.

CRM

A CRM keeps your contacts, leads and deals. Its most common link is the contact form.

Decide early which field identifies a person. HubSpot recommends always including the email address, the primary unique identifier that avoids duplicate contacts (HubSpot docs).

Payments

A payment provider takes the card details and moves the money, and your site needs the result. Keep card data off your server.

Stripe warns that handling card data directly can mean meeting more than 300 security controls in PCI DSS, the card industry’s standard. Its low-risk integrations send payment details straight to Stripe, never through your servers (Stripe docs). The result comes back by webhook, the firm’s signal to mark the invoice paid.

Email marketing

A sign-up form adds subscribers to your email platform, often with a tag for what they asked about. In Canada, a commercial email needs the recipient’s express or implied consent, and whoever claims consent has the onus of proving it (CASL, s. 6 and 13). Pass the consent, its date and the form it came from along with the email address.

Booking and calendars

Online booking reads free times from a calendar, writes the appointment back and sends the confirmation and reminders. Google Calendar’s API, for one, has a query that returns free and busy times for a set of calendars (Google docs). Test changes, cancellations and time zones, not just new bookings.

Accounting and ERP

Payments and invoices end up in accounting software, or in larger companies an ERP (enterprise resource planning) system. This is where two-way syncs appear, so decide which system owns each record. For the firm, the payment provider owns the payment and the accounting software owns the invoice.

Analytics

Analytics shows whether the integrations pay off, through forms sent, bookings made and invoices paid. Some of those events happen on your server, out of the browser’s sight. Google Analytics’ Measurement Protocol sends them to Google Analytics in HTTP requests, in addition to the standard tag (Google docs).

AI model APIs

AI models reach websites and apps like any other service, through an API. Your server sends its key, the instructions and the text to work on, such as an inquiry from the contact form. The response carries the model’s output, such as a summary, a category or a draft reply.

The planning below applies, plus 4 risks from OWASP’s 2025 list for applications built on large language models.

  • Prompt injection: text in the input, even text a person can’t see, can change what the model does (OWASP, 2025). Treat every visitor’s message as untrusted.
  • Sensitive information: personal and financial details, health records and credentials can leak (OWASP, 2025). Send only what the task needs, as Canada’s privacy commissioners also ask (OPC, 2023).
  • Excessive agency: a model that can send emails or change records needs limits, and OWASP advises that a person approve high-impact actions (OWASP, 2025).
  • Unbounded consumption: AI services charge per use, and a flood of requests can turn into a large bill (OWASP, 2025). Set limits per visitor and per day.

For the firm, a model could sort each inquiry by service and draft a reply that a person reads before it reaches the client. Our AI automation service builds workflows like this one.

Connectors, integration platforms or custom code

We start with the simplest option that does the job. When a built-in connector or an integration platform covers the fields and events, we use it. It costs less to build, and your team can change it later without a developer.

Custom code comes in when a platform can’t do a step, or when payments and personal data shouldn’t pass through one more company’s servers. You can build each connection in 3 ways.

Option How it works Best for Watch out for
Built-in connector or plugin A ready-made link that comes with your CMS, CRM or booking tool Standard flows between popular tools, such as a form that sends leads to your CRM It covers only the fields and events its maker chose
Integration platform (iPaaS) A hosted service where a trigger in one app starts actions in others Simple flows between supported apps, when a few minutes’ delay is fine Polling delays, task or credit limits and logic spread over many workflows
Custom code Your own server calls each API, often through the provider’s SDK Two-way syncs, complex rules, high volumes and sensitive data You own the hosting, the monitoring and every API change

If your site runs on a CMS such as WordPress, many of these links start as plugins or built-in integrations. Our guide to how a CMS works explains where they fit.

Integration platforms, often called iPaaS (integration platform as a service), are cloud-based tools for connecting applications, systems and data sources (IBM). On Zapier, a Zap is an automated workflow made of a trigger and one or more actions, and Zapier lists integrations for 9,000+ apps (Zapier help).

Make connects third-party services in what it calls scenarios (Make help). The n8n workflow automation tool can also run on your own servers (n8n docs; n8n hosting).

The trade-offs are timing and control. Most Zapier triggers poll, checking for new data every 15 minutes on the free plan and every 1 or 2 minutes on paid plans.

Instant triggers use webhooks instead (Zapier help). Platforms retry failed steps too, as Make does with exponential backoff after a connection error (Make help).

Custom code means your own server calls each API, usually through the provider’s SDK, a code library that builds the requests and reads the responses (MDN). It takes longer to build and you own its upkeep, but nothing limits the logic, the timing or where the data goes.

One website can use all 3. The firm’s newsletter sign-up could run on a plugin, its lead alerts on a platform and its payment webhook in custom code.

How to plan your API integration strategy

An API integration strategy is your plan for how systems share data: which connections you need, which system owns each record, how each one is secured and who looks after it. Work through these 7 steps for each connection, starting with the one your business relies on most.

Map the data and its direction

Start from the process, not the tool. Write down the event that starts the integration, the data it moves, the direction and who relies on it. “When a client pays online, mark the invoice paid in the accounting software within minutes” is a requirement a developer can build and test.

Then map each field to its place in the target system, with its format. The provider’s API documentation lists the field names, their types and the required ones.

Mapping a form to a CRM. Under the title, in gray: The firm’s contact form, field by field. Left, the form, Contact us: Full name, Alex Martin; Email, alex@example.com; Phone, 514 555 0182; Service needed, Bookkeeping, in a dropdown; Message, I need help with monthly bookkeeping; Newsletter, a ticked box, Yes, send me the newsletter; Page (hidden field), Bookkeeping page, in a dashed box; and a Send message button. Right, the CRM contact Alex Martin, marked New lead: First name, Alex and Last name, Martin, side by side; Email; Phone number, +1 514-555-0182; Service interest, Bookkeeping; Note; Marketing consent, Yes, Oct 24, 2026, contact form; Original source, Bookkeeping page. Each form field sits level with its place in the CRM, joined by a straight arrow, with notes: Full name to first and last name, Split in 2. Email, Finds duplicates. Phone, One format. Service, Same options in both. Newsletter to marketing consent, Proof of consent.

Decide which system owns each field. If the CRM and the accounting software can both change a client’s address, a two-way sync needs a rule for which change wins.

Check the provider’s API before you commit

Before we build on an API, we read its documentation with the data map in hand. We look for 5 things.

  • Every field and event on the map, with a webhook for each event your site has to react to.
  • A way to connect with only the permissions the integration needs.
  • Rate limits with room for your busiest day, on the plan you pay for.
  • A sandbox or test account, where the build never touches live data.
  • A changelog that announces changes before old versions stop working.

When something on that list is missing, we find out before the build starts, not halfway through it. That leaves time to choose another provider, a workaround or a smaller first version.

Give each integration the least access it needs

Create a key or an OAuth connection for the integration alone, with only the permissions it needs. Stripe suggests storing keys in a secrets vault from your hosting platform, or in environment variables, and never in code checked into version control (Stripe docs). Keep test and live keys apart, and revoke a key at once if it leaks.

Plan for limits, errors and retries

Some failures fix themselves, such as a timeout, a 503 or a 429. Retry those with a longer wait after each attempt. Amazon’s engineers call this exponential backoff and add jitter, a random delay that stops every client from retrying at the same moment (AWS, 2019).

If the provider sends a Retry-After header, wait as long as it asks. A 401 from a revoked key or a field the CRM rejects will fail again, and retrying it only fills the logs.

A retry must never create a duplicate, which is why Amazon advises idempotent calls that can be repeated safely (AWS, 2019). Where a provider supports idempotency keys, send the same key with every attempt. Stripe’s let you repeat a request without creating a second object or performing an update twice (Stripe docs).

When the retries run out, move the job to a dead-letter queue, a queue for failed jobs where it can be examined (AWS docs), and alert a person.

When a request fails. Under the title, in gray: A paid invoice on its way to the accounting software. Four cards from left to right, joined by arrows. Webhook received: Invoice 2041 paid, saved and answered with 200 OK. Attempt 1, with a red X: 503 Service unavailable, then wait 1 minute. Attempt 2, with a red X: 429 Too many requests, then wait 2 minutes, as Retry-After asks. Attempt 3, with a green check: 200 OK, invoice 2041 marked paid. A dashed line runs down to a panel: Still failing after 5 attempts? Failed queue: the job waits with its error. Alert: the office manager gets an email. Fix and send again: the job runs once more from the queue. At the bottom: Every attempt carries the same request ID, so the payment is recorded once.

In the example, the paid invoice reaches the accounting software on the third attempt, and its request ID means the payment is recorded once.

Test before launch

Build against the providers’ test environments first. Stripe’s sandboxes have their own keys, with settings and data isolated from live mode (Stripe docs).

Test the failures on purpose too, such as a wrong key, a timeout, a duplicate webhook and a field that’s too long. Then release the integration like any other change. Our post on deployment strategies covers staging, rollbacks and safer releases.

Watch it and name an owner

Integrations fail quietly. The form still says thank you while the lead never reaches the CRM.

After launch, the code is almost never what breaks. It’s a change around it, such as a key that expires, a form field nobody mapped or a CRM option someone renamed.

We catch those in 2 ways. A test entry goes through each connection after every change to a form or a tool, and an alert covers the changes nobody tells us about.

Watch each connection’s last success, its errors and its failed queue, and send alerts to a named person. Providers’ own logs help too, such as the API call logs HubSpot shows for the apps in an account (HubSpot docs).

Integration health. Under the title, in gray: The firm’s 6 connections on one screen, checked each morning. An Integrations screen with the firm’s logo and Today, 9:10, and a table of connection, last success and note. Contact form to CRM, green check, 9:02, no failures this week. Booking to calendar, green check, 8:47, no failures this week. Payment provider to website, green check, 8:14, webhooks received. Website to accounting, green check, 8:15, 1 retry this week, recovered. Newsletter to email marketing, red X, failing since 7:30, on a light red row: 401 Unauthorized, key expired; office manager alerted; sign-ups wait in the queue. Website events to analytics, green check, 9:05, events received. Under the screen: Every connection has an owner and an alert.

On the firm’s health screen, the newsletter connection has failed since 7:30 with a 401 because a key expired. The office manager has the alert, and the sign-ups wait in the queue until the key is replaced.

Write it down and hand it over

Keep one page per integration with what it does, the fields, where the keys are stored (never the keys themselves), the limits, the alerts and the owner. It’s what the next developer will need first.

When we hand an integration over, your team needs 3 things from us to keep it running.

  • Your own accounts: every connection runs in your accounts, through access you can remove at any time.
  • Documentation: that one page for each integration, which lets your team change it without us.
  • A walkthrough: the person who gets the alerts learns what each one means and what to check first.

The risks to plan for

An integration adds a dependency your business didn’t have before. Plan for these risks.

  • Data you trust too much: OWASP’s 2023 top 10 API security risks include unsafe consumption of APIs. Developers tend to trust data from third-party APIs more than user input, and attackers target those integrated services (OWASP, 2023). Check what comes in as you would a form.
  • Costs that grow with abuse: email, SMS and phone calls bought through API integrations are paid per request, and OWASP warns that attacks can raise operating costs (OWASP, 2023). Protect the forms that trigger them.
  • Personal data in more places: under PIPEDA, you stay responsible for personal information you transfer to a third party for processing. You must protect it at a comparable level (OPC). Check where each provider stores data.
  • Outages and changes: when a provider goes down or changes its API, your feature breaks with it. Decide what the site does meanwhile, such as queueing the data.
  • Lock-in: the deeper an integration goes, the harder it is to switch. Keep your own copy of the data that matters.

Where your team retypes data

Start with the copying and pasting. List every place where someone on your team retypes data from one tool into another, and how often.

Pick the one that costs the most time or loses the most leads, and map its fields before you choose a tool. Check whether a built-in connector covers it, then decide who gets the alert when it fails.

What drives the effort

The effort depends on scope, and these things move it most.

  • How many systems: each has its own API, keys, fields and failure cases.
  • Which direction: a one-way feed is simpler than a two-way sync that settles conflicts.
  • The data: its volume, its duplicates and the old records to move.
  • The provider’s API: a ready connector, clear docs and a sandbox save time.
  • Rules and compliance: conditions, approvals, consent, privacy and card data rules.
  • Upkeep: monitoring, key rotation and API changes after launch.

We build integrations as part of custom software development, and an estimate follows a short call about your systems and data.

How we approach API integrations

Our development work covers API integration and deployment, connecting external services and releasing applications to production. When a product needs its own API, we design and build that too.

On our website projects, the development phase covers deploying your CMS and configuring analytics and on-site SEO.

Each project starts with requirements. We review your objectives with you, research the market and the technology, then choose the tools.

On the back end we work in Node.js, Python, PHP and Go. We test against a plan of test cases and scenarios, automated or by hand, and track each defect until it’s resolved.

Our AI automation work connects website forms, CRMs, help desks and email through APIs and webhooks. Our own contact form sends each inquiry to our CRM.

Some of this work is on our published projects.

  • For Cycle Momentum, a startup accelerator, we replaced an unclear application form with a step-by-step application for startups, investors and corporations. It was built to improve how applicants are segmented and sorted in the accelerator’s CRM.
  • For triLED, which makes portable mosquito-repelling lights, we designed and developed an ecommerce website with online payments and email notifications for promotions and discounts.
  • For DDDkit, a subscription marketplace of editable 3D assets, the work included API integrations. Buyers check out single asset packs from a cart, and the creator dashboard combines profile verification with the payment system. Creators can track payouts and export statements as CSV.
DDDkit’s cart in 2 sizes, each listing 3 asset packs with a commercial license, the subtotal and View cart and Checkout buttons
DDDkit’s cart, one step before payment.

If your integration needs a two-way sync or custom code, our development team can plan and build it with you.

Find the answers to your frequently asked questions

API integration connects 2 pieces of software through their APIs, so one can send data to the other, request data from it or trigger an action there automatically. A website’s contact form that creates a lead in a CRM is an example, and so is a payment that marks an invoice paid in accounting software.
An API is a set of rules that lets one program use another program’s features or data. For example, when you book an appointment online, the booking page may ask a calendar’s API for free times, then send a second request that adds your appointment. The calendar answers each request with data, usually in JSON.
A third-party API is one that another company builds and runs on its own servers, which you use to add its service to your website or app. Payment providers, CRMs, email marketing platforms, maps and calendars are common examples. The provider sets the rules, including the keys you need, the rate limits and when the API changes.
An API integration strategy is a plan for how your systems share data. It lists the connections you need, which system owns each record, which way the data flows, how each connection is secured and how failures are retried and reported. It also names an owner for each integration and chooses between connectors, integration platforms and custom code.
Retry temporary failures with a wait that grows after each attempt and a little randomness, and respect any Retry-After header. Make each request safe to repeat, for example with an idempotency key. Check webhook signatures and ignore duplicate events. Send jobs that keep failing to a queue for failed jobs, and alert a named owner.
There’s no official list, but a practical split is 5 stages. Plan the data, its direction and the access it needs. Build the connection with a connector, a platform or code. Test it in the providers’ sandboxes, failures included. Launch it with a way back. Then monitor it with alerts and an owner, and keep up with API changes.
By style, REST is the most common. In Postman’s 2025 survey of over 5,700 developers, architects and executives, REST came first at 93%, ahead of webhooks at 50%, WebSockets at 35% and GraphQL at 33%. REST APIs use standard HTTP methods such as GET and POST and usually send data as JSON.
Let the payment provider collect the card details through its hosted checkout or payment fields, so card data never touches your server. Keep secret keys on the server and use restricted keys where you can. Verify every webhook’s signature, use idempotency keys on retries and test everything in the provider’s sandbox before going live.

Connecting your business tools?

Tell us which tools your team uses and what should move between them. We’ll reply within 1 business day.

Get in touch

Have a project in mind?
Let’s get in touch

Tell us about your project. If our partnership isn’t the right fit, we’re happy to share insights that could still help you.

Get in touch