๐ฌ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
- Explain what an API, REST, HTTP methods, headers, a body and status codes are.
- Create a custom webhook, define a data structure and receive requests.
- Return a tailored response with Webhook response (status, JSON, headers).
- Secure a webhook with an API key in a header and a filter.
- Use the HTTP module with different authentication methods, a query string and a JSON body.
- Build valid JSON with Create JSON and handle special characters.
- Build a lead-intake API that returns a response within a second.
๐๏ธSession agenda (3 hours)
- 00:00โ00:15 Review: the smart form
- 00:15โ00:45 APIs and HTTP: the way systems talk
- 00:45โ01:15 Custom webhooks and data structures
- 01:15โ01:30 โ Break
- 01:30โ01:50 Webhook response and security
- 01:50โ02:15 The HTTP module: auth, query, body
- 02:15โ02:50 Building together: a lead-intake API
- 02:50โ03:00 Summary and practice
1What 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.
| Part | What it is | Example |
|---|
| Method | What you want to do | GET (read), POST (create), PUT/PATCH (update), DELETE (delete) |
| URL | Where to | https://api.example.com/v1/leads |
| Query string | Parameters in the URL | ?status=new&limit=10 |
| Headers | Metadata: authentication, content type | Authorization: Bearer abcโฆ / Content-Type: application/json |
| Body | The content (in POST/PUT) | {"name":"Dana"} |
| Status code | Whether it worked | 200 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.
2Webhook โ 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 setting | What it does |
|---|
| Data structure | Defines the expected fields (or Redetermine from a real request) |
| Get request headers | Adds the headers to the output โ needed for checking an API key |
| Get request HTTP method | Adds the method (GET/POST) |
| JSON pass-through | Passes the body as raw text instead of breaking it into fields |
| IP restrictions | Accepts 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.
3Webhook 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.
| Field | Example |
|---|
| Status | 200 / 201 / 400 / 401 |
| Body | JSON (best built with Create JSON) |
| Custom headers | Content-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.
4Securing 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.
5The HTTP module in depth
| Setting | When |
|---|
| Authentication type: No auth / API key / Basic / OAuth 2.0 | Whatever the API requires. Keys are stored in Keychain/a connection |
| Query parameters | Parameters added to the URL (Make encodes special characters automatically) |
| Headers | Accept, Content-Type, custom keys |
| Body type: Raw (JSON) / Form / Multipart | JSON for most APIs; multipart for uploading files |
| Parse response | Yes almost always |
| Evaluate all states as errors | If off โ 4xx/5xx won't stop the scenario (you handle them yourself) |
| Timeout | How 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.
6Make 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.
| Option | Advantage | Disadvantage |
|---|
| A ready module | The easiest, labeled fields | Only what the module supports |
| Make an API call | Ready auth + full flexibility | You need to read the API docs |
| HTTP | Works with everything | You manage auth yourself |
7Building 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.