Connectivity Masterclass: Webhooks & HTTP Requests (Part 5)

· Manuel · 28 min read · Automation

You have reached the level where "No-Code" usually breaks. Most users hit a wall when they want to connect to a specific tool (like a niche Real Estate CRM or a legacy ERP) and they don't see a pretty logo in the library. They say: "Oh, n8n doesn't support X."

Wrong. If a software exists on the internet in 2025, it almost certainly has an API. And if it has an API, n8n supports it better than any other tool on the market.

In Part 5, we are taking off the training wheels. We are going to learn how to speak the language of the web: HTTP. We will cover Authentication, Headers, JSON payloads, and how to reverse-engineer any API docs.

Related Reading

The HTTP Request Node: The Skeleton Key

This single node is more powerful than the other 500 nodes combined. It allows you to simulate a browser or a server making a request.

The 4 Verbs You Need to Know: 1. GET: "Give me data." (e.g., Get list of contacts). 2. POST: "Here is new data." (e.g., Create a contact). 3. PUT/PATCH: "Update this data." (e.g., Change status to 'Sold'). 4. DELETE: "Destroy this data." (e.g., Remove contact).

If you understand these four words, you can rebuild the entire internet infrastructure.

Authentication: Getting Through the Door

APIs are protected. You need a key. n8n handles auth beautifully with "Credentials".

Types of Auth:

  • Basic Auth: Username/Password (Old school).
  • Bearer Token: A long string you put in the Header (Most common).
  • API Key: Specific query parameter.
  • OAuth2: The "Sign in with Google" flow. n8n handles the token refresh automatically.

Pro Tip: Never hardcode your API keys in the URL. Use `{{ $credentials.stripeApi.key }}`. If you hardcode it and export your workflow, you just gave your bank account to the internet.

Real World Example: Connecting to a Random API

Let's say you use a niche CRM called "RealtorFlex" (fictional). It has no n8n node. You find their API docs: `POST https://api.realtorflex.com/v1/leads`

In n8n: 1. Drop an HTTP Request node. 2. Method: `POST`. 3. URL: `https://api.realtorflex.com/v1/leads`. 4. Headers: - `Content-Type`: `application/json` - `Authorization`: `Bearer YOUR_KEY` 5. Body Parameters: ```json { "name": "{{ $json.name }}", "price": "{{ $json.budget }}" } ```

Click Execute. Success. You just built your own integration. You don't need to wait for the developers to add it. You are the developer.

Webhooks: Receiving Data (The Reverse)

HTTP Requests are for sending data. Webhooks are for receiving it. We covered this in Part 2, but let's go deeper.

Security: Anyone can post to your webhook. How do you stop hackers? Header Validation. In your Webhook node, check for a specific header (e.g., `X-Form-Secret`) that only your form provider knows. Use an If node to block anything that doesn't have it.

Related articles