If you've ever wanted to connect two apps that don't natively talk to each other, you've encountered webhooks and APIs. They sound technical, but the concepts are surprisingly simple once you see them through the right lens.
What Is an API?
An API (Application Programming Interface) is a way for two software applications to communicate. Think of it like a waiter at a restaurant:
- You = your app (making a request)
- The kitchen = another app's data/functionality
- The waiter = the API (carries your request and brings back the result)
When Stripe wants to tell your system "a payment was made," it uses an API. When HubSpot updates a contact based on a form submission, that's an API call.
What Is a Webhook?
A webhook is a specific type of API that is event-driven. Instead of your app constantly asking "did anything happen?", a webhook lets the other app push data to you the moment something occurs.
Polling (bad): "Did someone submit a form?" → wait → "Did someone submit a form?" → wait...
Webhook (good): Form is submitted → other app instantly sends data to your URL → your automation triggers immediately.
Webhooks are faster, more efficient, and are the backbone of modern automation.
How to Use Webhooks in n8n
Setting up a webhook in n8n takes about 2 minutes:
- Add a Webhook node as your trigger in n8n
- Copy the webhook URL that n8n generates
- Paste it into the other app's webhook settings (e.g., in Stripe, Typeform, or your custom app)
- Test it by triggering the event — watch the data appear in n8n
That's it. n8n is now listening for that event 24/7.
Reading API Responses
When you make an API call, you get back data in JSON format. It looks like this:
{
"customer": {
"name": "Jane Smith",
"email": "jane@company.com",
"plan": "Pro"
}
}
In n8n, you can map these values directly into the next step of your workflow using expressions like {{ $json.customer.email }}.
Authentication: The Key Concept
Most APIs require you to prove you're allowed to access them. The most common methods:
- API Key — a unique string you add to your request headers
- OAuth — a "Login with Google/Stripe/etc." style flow
- Bearer Token — a temporary token you exchange for access
n8n handles all of these natively. You add your credentials once in n8n's credential manager, and every node that uses that app will authenticate automatically.
Common Integration Patterns
Here are the three most common webhook/API integrations I build:
1. Form → CRM → Email
Typeform submission → n8n receives webhook → creates HubSpot contact → sends personalized email via Gmail
2. Payment → Internal System → Notification
Stripe payment webhook → n8n validates → updates database → sends Slack notification to team
3. Scheduled Data Sync
Every hour → n8n calls API to fetch data → transforms it → pushes to Google Sheets
The Bottom Line
You don't need to be a developer to use webhooks and APIs effectively. Modern tools like n8n handle the complexity — you just need to understand the concepts, know where to find your API key, and follow the flow.
Once you connect your first two apps, a whole new world of automation opens up. Every app becomes a building block in a larger, smarter system.
Want me to build a specific integration for your business? Get in touch and let's make it happen.