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

Practice instructions

  • Answer the multiple-choice questions first โ€” they make sure the concepts are clear.
  • Do the tasks in order. Each task builds on the previous one.
  • Tick โœ… the criteria when you achieve them โ€” progress is saved in your browser.
  • Stuck? Open the help guide (AI prompts + detailed steps). Open the solution only at the end.

Part A โ€” Multiple-choice questions

Build the scenario โ€” an ordering exercise

Put the session project's steps in the right order. Get instant feedback.

Talking to an API

Task 1: Talking to an API

โ˜…โ˜†โ˜†โ˜†โ˜†โฑ๏ธ 20 min

Practice GET and POST against a practice API.

๐Ÿ“Œ Requirements

  1. HTTP GET to https://jsonplaceholder.typicode.com/users/1.
  2. HTTP GET with a query: /posts?userId=1 โ€” how many posts came back?
  3. HTTP POST to /posts with a JSON body (title, body, userId).
  4. Check the status code in each one.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "statusCode": 201,
  "data": {
    "id": 101,
    "title": "Hello"
  }
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

โœ… Success criteria (tick when achieved)

๐Ÿ’ก Hints (open only if you are stuck)
  • Body type: Raw โ†’ Content type: JSON (application/json).
  • length(data) to count the posts.

A first webhook with a response

Task 2: A first webhook with a response

โ˜…โ˜…โ˜†โ˜†โ˜†โฑ๏ธ 25 min

Create a webhook that receives a name and returns a greeting as JSON.

๐Ÿ“Œ Requirements

  1. A custom webhook named hello.
  2. Send from Hoppscotch: POST with {"name":"Dana"}.
  3. Webhook response with status 200 and a body {"greeting":"Hello Dana!"}.
  4. Header: Content-Type: application/json; charset=utf-8.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "name": "Dana"
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

โœ… Success criteria (tick when achieved)

๐Ÿ’ก Hints (open only if you are stuck)
  • Create JSON needs a data structure โ€” Add โ†’ Generate โ†’ paste an example.
  • In Run once, send the request only after you clicked.

A secure leads API

Task 3: A secure leads API

โ˜…โ˜…โ˜…โ˜†โ˜†โฑ๏ธ 45 min

Build the session project: a secure webhook with validation and correct responses.

๐Ÿ“Œ Requirements

  1. Get request headers on.
  2. 401 when x-api-key is missing or wrong.
  3. 400 when there is no email or it's invalid, with a clear message.
  4. 201 with leadId, score and message when everything is valid.
  5. Test all 3 cases.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

โœ… Success criteria (tick when achieved)

๐Ÿ’ก Hints (open only if you are stuck)
  • Use get(map(1.__IMTHEADERS__; "value"; "name"; "x-api-key"); 1).
  • Header names arrive in lowercase.

Calling an external API for enrichment

Task 4: Calling an external API for enrichment

โ˜…โ˜…โ˜…โ˜†โ˜†โฑ๏ธ 30 min

Add real enrichment: estimating gender/age by first name (a free API) โ€” as practice in calling an API.

๐Ÿ“Œ Requirements

  1. HTTP GET to https://api.genderize.io?name=โ€ฆ with the first name.
  2. Handle the case where the API fails (the scenario doesn't stop).
  3. Add the result to the response.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "statusCode": 200,
  "data": {
    "name": "dana",
    "gender": "female",
    "probability": 0.98
  }
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

โœ… Success criteria (tick when achieved)

๐Ÿ’ก Hints (open only if you are stuck)
  • The first name: first(split(name; " ")).
  • This is API practice, not a business decision.

Automatic check of your scenario

Finished building? Export the scenario from Make and get instant feedback: missing modules, Router, filters, error handling, empty fields and even API keys left in the file. A score of 80+ = the scenario is verified and goes into your portfolio.

Part C โ€” Challenge ladder (pick a level)

Every student has their own pace. Pick the level that suits you now โ€” and when you finish, go up a level.

๐ŸŸข Beginner: A webhook that returns a greeting as JSON.
๐ŸŸ  Intermediate: A leads API with 3 responses (401/400/201).
๐Ÿ”ด Advanced: Add an HMAC signature check: the sender computes sha256 of the body with a secret, and you verify it with sha256(body; ; secret) (see the docs) and return 401 when it doesn't match.

Bonus challenge

Documenting your API: write a short "API Docs" page (it can be in Google Docs) for a developer who wants to use the leads API: address, method, headers, a body example, examples of each response and status codes. That is what sets professional automation apart.

Done? There is more!

For students who want more: the challenges page has 3 exercises at advanced, expert and boss level โ€” each with a simulation and a guided solution.