Session 4 / 15๐Ÿ”Žืขื‘

What we learn today โ€” a short video

โšก By the end of the session you will know

  • API = a service counter: method, URL, headers, body, status.
  • Webhook = the other system calls us โ€” immediate and without polling.
  • Webhook response returns a status and JSON; return early.
  • Secure it with an API key in a header and a filter.
  • We built a lead-intake API with 401/400/201.

A silent video of about half a minute: the session topic, the learning goals (also listed in the next section) and the scenario we build today.

The story of Etz va'Or (Wood & Light) โ€” Chapter 4: The website talks to Make

The website developer asks: "How do I send you a lead, and what do I get back?" Now we need a real API โ€” a secured Webhook, validation and data enrichment โ€” with a tidy JSON reply to the website.

๐Ÿงต One story across the whole course: every session solves a real problem for the business. At the end โ€” a complete system.

Session goals

  1. Explain what an API, REST, HTTP methods, headers, a body and status codes are.
  2. Create a custom webhook, define a data structure and receive requests.
  3. Return a tailored response with Webhook response (status, JSON, headers).
  4. Secure a webhook with an API key in a header and a filter.
  5. Use the HTTP module with different authentication methods, a query string and a JSON body.
  6. Build valid JSON with Create JSON and handle special characters.
  7. Build a lead-intake API that returns a response within a second.

Session agenda (3 hours)

  1. 00:00โ€“00:15 Review: the smart form
  2. 00:15โ€“00:45 APIs and HTTP: the way systems talk
  3. 00:45โ€“01:15 Custom webhooks and data structures
  4. 01:15โ€“01:30 โ˜• Break
  5. 01:30โ€“01:50 Webhook response and security
  6. 01:50โ€“02:15 The HTTP module: auth, query, body
  7. 02:15โ€“02:50 Building together: a lead-intake API
  8. 02:50โ€“03:00 Summary and practice

What to prepare for this session

Hoppscotch

https://hoppscotch.io (opens in a new window)
Send HTTP requests from the browser โ€” free, no installation. (Or Postman.)

Webhook.site

https://webhook.site (opens in a new window)
A temporary address to see what Make sends.

JSONPlaceholder

https://jsonplaceholder.typicode.com (opens in a new window)
A fake API for practicing GET/POST.

What is an API?

An API (Application Programming Interface) is a system's "service counter": a defined place where another system can ask for data or an action. Most APIs today are REST over HTTP and speak JSON.

PartWhat it isExample
MethodWhat you want to doGET (read), POST (create), PUT/PATCH (update), DELETE (delete)
URLWhere tohttps://api.example.com/v1/leads
Query stringParameters in the URL?status=new&limit=10
HeadersMetadata: authentication, content typeAuthorization: Bearer abcโ€ฆ / Content-Type: application/json
BodyThe content (in POST/PUT){"name":"Dana"}
Status codeWhether it worked200 OK ยท 201 Created ยท 400 ยท 401 ยท 404 ยท 429 ยท 500
โ„น๏ธ Status codes worth remembering2xx success ยท 400 an invalid request (check the body) ยท 401/403 a permissions problem (the key) ยท 404 not found (the URL) ยท 429 too many requests โ€” slow down ยท 5xx their server is down โ€” try again later.

Webhook โ€” when the system calls you

โŒ API (pull) โ€” we ask
  • Make sends a request when it wants to
  • Suits fetching and actions
  • Example: HTTP GET for exchange rates
โœ… Webhook (push) โ€” they call us
  • The other system sends to Make when something happens
  • Immediate, no polling, no wasted Credits
  • Example: a form, a Stripe payment, a Telegram message

A custom webhook in Make gives a unique address (https://hook.eu1.make.com/โ€ฆ). Every request that reaches it starts the scenario โ€” provided it is ON (or in Run once).

Webhook settingWhat it does
Data structureDefines the expected fields (or Redetermine from a real request)
Get request headersAdds the headers to the output โ€” needed for checking an API key
Get request HTTP methodAdds the method (GET/POST)
JSON pass-throughPasses the body as raw text instead of breaking it into fields
IP restrictionsAccepts only certain IP addresses
โš ๏ธ The queueIf requests arrive faster than the scenario processes them, they go into the webhook's queue. If the scenario is off โ€” the requests are kept in the queue (up to a limit) and processed when you turn it on. In Webhooks in the side menu you can see the queue and clear it.

Webhook response โ€” returning an answer

Without a response module, Make automatically returns 200 Accepted. But a real API should return something useful: an ID, an error message, the right status. For that: Webhooks โ†’ Webhook response.

FieldExample
Status200 / 201 / 400 / 401
BodyJSON (best built with Create JSON)
Custom headersContent-Type: application/json; charset=utf-8
๐Ÿ›‘ A time limitMake waits for the response for a limited time (about 3 minutes). If the scenario hasn't reached Webhook response by then โ€” the sender gets a default response. That's why you return the response early, and continue the heavy work (AI, CRM) after it.

Securing a webhook

The webhook's address is "secret" but not secured: anyone who has it can send requests. Three layers of protection:

๐Ÿ”‘

An API key in a header

The sender adds x-api-key: โ€ฆ. In the webhook you turn on Get request headers, and a filter checks the value. No match โ†’ 401.
๐ŸŒ

IP restrictions

If the sender is a server with a fixed IP โ€” restrict the webhook to that IP.
โœ๏ธ

A signature (HMAC)

Services like Stripe and GitHub sign the request. You compute sha256 with the secret and compare.
Filter "Authenticated":
{{get(map(1.__IMTHEADERS__; "value"; "name"; "x-api-key"); 1)}}   Text: Equal to   course-2026-secret
๐Ÿ’ก Where to keep the secret?Not inside the filter as fixed text for a long time โ€” better in an organization/team custom variable (on plans that support it), so you change it in one place. We will meet them in session 14.

The HTTP module in depth

SettingWhen
Authentication type: No auth / API key / Basic / OAuth 2.0Whatever the API requires. Keys are stored in Keychain/a connection
Query parametersParameters added to the URL (Make encodes special characters automatically)
HeadersAccept, Content-Type, custom keys
Body type: Raw (JSON) / Form / MultipartJSON for most APIs; multipart for uploading files
Parse responseYes almost always
Evaluate all states as errorsIf off โ€” 4xx/5xx won't stop the scenario (you handle them yourself)
TimeoutHow long to wait for a response

Create JSON โ€” don't write JSON by hand

JSON written by hand with mapping breaks when a name contains quotes, a line break or an emoji. JSON โ†’ Create JSON takes a data structure and mapped fields and returns valid JSON โ€” map it into the body.

Make an API call โ€” the middle way

Many apps in Make have a Make an API call module. It uses the existing connection (for example Google or Slack), but lets you call any endpoint โ€” even one with no ready module. You write only the relative path (/v1/โ€ฆ), and authentication is already handled.

OptionAdvantageDisadvantage
A ready moduleThe easiest, labeled fieldsOnly what the module supports
Make an API callReady auth + full flexibilityYou need to read the API docs
HTTPWorks with everythingYou manage auth yourself

Building together: a lead-intake API

Lab: simulations and examples

Three ways to see today's material in action: the scenario canvas runs the session's scenario like Make does (with a Credits count), the race compares manual work with automation, and the function playground shows real mapping examples.

๐Ÿ’ก Why in this order?

Authenticate first, then validate, and only when there's a full answer โ€” Webhook response.

A real-world case study

"Or Clinic" โ€” a chain of dental clinics. The chain's booking website (developed externally) needed to send every new appointment to the management system, to SMS and to the manager's sheet. Instead of a development project, the developer added one call to a Make webhook with an API key. The scenario authenticates, returns a confirmation number within a second (shown to the patient), and only then does everything else. Development time: one day instead of a month. Changes (for example adding a WhatsApp reminder) are now made without a developer.

Frequently asked questions

What's the difference between a Make webhook and an app's webhook (for example Tally)?

A custom webhook receives any request in any structure. An app trigger (instant) is a webhook the app registers automatically and knows the structure in advance.

Can I receive GET?

Yes. Parameters from the URL (query) appear as fields. Turn on Get request HTTP method to know what arrived.

Why did I get 'Accepted' and not my JSON?

The scenario didn't reach Webhook response (a filter stopped it, or it's after a slow module), or the scenario wasn't ON.

How many webhook requests can it receive?

There are rate and queue limits by plan. For high volumes โ€” Sequential processing off, and an early response.

Quick understanding check

What now?

You finished the lecture! Go to the practice page โ€” multiple-choice questions and tasks that build A lead-intake API: a secure webhook โ†’ validation โ†’ enrichment โ†’ a JSON response. Stuck? The help guide breaks every task into steps. Only after you have tried, peek at the full solution.