Portmint Lighthouse

A Real Call, End to End

We've met every part of the meal: the menu, the order, the reply, the key, the polite limits. In this last lesson we'll watch one real order travel the whole way through — all seven steps — so you can see there was never any magic in it.

One trip, start to finish

Let's say your app wants today's weather in Boston. Walk it with me, slowly.

1. Pick the dish (the endpoint). You read the weather service's docs and find the "today's weather" line on the menu. An endpoint is one specific thing you can ask for, and it has an address: https://api.weather-example.com/today.

2. Add your notes (the parameters). You want Boston, not everywhere. Parameters are the little notes that customize an order — here, ?city=Boston. Stick a ? before the first note.

3. Show your badge (the key). A key is a private password that proves who you are. It rides along too: &key=YOUR-KEY. Extra notes get joined with &.

4. Write the order slip (the request). A request is the whole order you send. Yours is a GET — meaning "please hand me this" — pointed at:

GET https://api.weather-example.com/today?city=Boston&key=YOUR-KEY

5. The kitchen checks and cooks. The request travels to the service. The kitchen checks your key (valid?) and your rate limit — the cap on how often you may ask (under it?). Yes and yes. It looks up Boston and plates the answer.

6. The plate comes back (the response). The response has two parts. First a status code — a quick health report — and you get 200, which means "all good." Then a body, written in JSON, a tidy label-and-value format both apps understand:

{
  "city": "Boston",
  "temperature": 68,
  "conditions": "sunny"
}

7. You read the plate. You glance at the status (200 — success), then read the body, pulling the value next to "temperature". Your app shows "Boston: 68°, sunny." Done.

That's the entire dance. Seven steps, no mystery. 🔦

Why this is the only pattern you need

Swap the weather service for a maps service and almost nothing changes. Different building, different dish (/directions instead of /today), different notes (?from=…&to=…). But the shape is identical: pick an endpoint, add parameters, show your key, send the request, read the response's status and JSON, and mind your rate limit.

That's the quiet gift of this course. Once you see the shape, every new API is just a new menu in a familiar restaurant. You already know how to order.

Your turn

Trace one call on paper — no computer needed. Pick any service you can imagine (a weather app, a map, a music app) and write out its seven steps in your own words, the way we just did for Boston:

  1. What's the endpoint (the thing you're asking for)?
  2. What parameters would you add to customize it?
  3. Where does the key go, and why is it secret?
  4. What does the whole request line look like?
  5. What status code do you hope comes back, and what does it mean?
  6. What two or three values might the JSON response hold?
  7. What's the rate limit to respect?

If you can fill in all seven, you can read any API.

That little exercise is also your runway to the capstone: a one-page API Field Guide that traces a real weather call with every part — request, parameters, response, status, key, rate limit — labeled and explained on a single page you can keep and show.

You came in thinking these were arcane. You're leaving able to read a menu, place an order, and explain the whole meal. Steady work, friend — the beacon's yours now. 🔦

You finished the course 🎉

Want this kind of AI — branded, on your site, answering from your business's own knowledge? Leave your details and Portmint will reach out.

No spam. We'll only use this to follow up about your AI.