TOPIC 02/3612 MINNOT STARTED

APIs in plain words

An API is a menu of requests one program may make of another. See requests, responses, contracts, versions and the three common ways a caller proves who it is.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: The restaurant menu. A menu lists what you can order and what you get back. You do not walk into the kitchen. You pick a dish from the list, and the dish arrives.

An is the menu of a program. The letters stand for Application Programming Interface. It is a set of agreed requests that one program can make of another. The program that offers the menu does the work. The program that orders is the caller.

Daily List, the to-do app, has an API. A calendar service wants to show Lily's tasks next to her meetings. It does not look inside the Daily List database. It sends a request, which is a message that asks a system to do or give something. The request says, "Which tasks are due today?"

Daily List answers with a response, which is the reply a system sends back to a request. The response holds the list of tasks. Both sides know the shape of the question and the shape of the answer, because the menu said so.

Sam, the , reads the menu to learn what the calendar can ask for, and what it cannot.

A printed menu stays the same all year. An API can change, so it carries a version number.

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.

THE REAL JOB The picture helps a newcomer remember that an is an agreed list of requests, and that the caller never enters the kitchen.

  1. Read the menu
  2. Send the request
  3. System does the work
  4. Response returns
  5. Caller uses the answer
One call to an API

HOW THE PICTURE MAPS

How each part of the picture matches the work
In the pictureIn the work
The printed menuThe API description of what may be asked
Ordering a dishSending a request
The dish that arrivesThe response
The kitchen the guest never seesThe system inside, which stays hidden
A new menu for a new seasonA new version of the API

WHERE THIS PICTURE STOPS

  • A printed menu stays the same all year, but an API can change by version.
  • A guest can ask a waiter for something off the menu. A program cannot.
  • A menu has no sign-in. An API checks who is calling.

HOOK

Order from the menu, never from the kitchen.

REMEMBER IT THIS WAY

A contrast: two neighbours told apart by one test.

A request asks and a response answers. The calendar service asks 'Which tasks are due today?' and Daily List replies with the list, without opening its database.

What each part of the trick stands for
In the trickWhat it stands for
RequestA message that asks a system to do or give something
ResponseThe reply a system sends back to a request
MenuThe agreed list of requests

TELL A FRIEND

An is a menu of agreed requests. The caller sends a request, the system sends a response, and the caller never sees the kitchen.

OFTEN MIXED UP WITH How apps talk: client, server and database. That topic shows the parts of an app. This one shows the menu one program offers to another.

PRACTISE AND KEEP

Sources for this topic — 7 sources
  1. Market practice

    Introduction to web APIs (Mozilla developer docs) ↗ — Mozilla (MDN Web Docs) · Introduction to web APIs (Mozilla developer docs): an API is a set of programming features that hides harder code behind simpler ones; browser APIs and third-party APIs (search excerpt, page not opened)

    Developer documentation. Says an API is a set of programming features that hides harder code behind simpler ones. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    What is API authentication: keys, tokens and OAuth (WorkOS blog) ↗ — WorkOS · What is API authentication: keys, tokens and OAuth (WorkOS blog): authentication says who is calling and authorisation says what the caller may do; API keys, bearer tokens and OAuth compared (search excerpt, page not opened)

    Vendor blog. Separates who is calling from what the caller may do, and compares API keys, bearer tokens and OAuth. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Simple Object Access Protocol (SOAP) versus Representational State Transfer (REST): two API styles compared (Upwork) ↗ — Upwork · Simple Object Access Protocol (SOAP) versus Representational State Transfer (REST): two API styles compared (Upwork): REST and SOAP are two API styles; SOAP uses XML in an envelope (search excerpt, page not opened)

    Marketplace guide. Says SOAP messages are XML in an envelope, REST can carry several formats and usually uses JSON, and REST uses the web status codes for errors. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    What this simplifies: Daily List, its calendar connection and the people are invented. Real APIs have many more features, such as limits on how often a caller may ask. The version rule and the change advice are common practice with no single source.

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

  5. Market practice

    RFC 9110 — HTTP Semantics ↗ — IETF · RFC 9110, STD97, June2022, §§9.2,9.3,15.4–15.5. Opened relevant safe/idempotent/403/404 sections. HTTP-specific semantics, not all APIs.

    The definition of what an idempotent request method is, alongside safe methods, the status-code semantics an API contract is built on, and conditional requests.

    Used here for the systems-design questions a Payments Software Engineer and a Payments Solution Architect are asked, where the question turns on HTTP's own guarantees rather than on a scheme's rules. · Checked 2026-08-18

    Internet Standard, June 2022, obsoleting RFC 7230 through 7235.

    Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.

    Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.

    Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.

    Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.

  6. Market practiceBCP 240, January 2025

    RFC 9700: Best Current Practice for OAuth 2.0 Security ↗ — IETF / OpenID Foundation · RFC 6750October2012; RFC 9700BCP240January2025; OpenID ConnectCore 1.0errata 2,15December2023. Opened bearer usage and sender-constrained§4.10.1; OIDCabstract explicitly identity layer. OAuth access token need not authenticate end-user, be self-contained/shortlived/bearer. Stolen bearer risk limited by actual permissions, flaws may widen harm.

    OAuth security practice, including sender-constrained access tokens in §4.10.1; RFC6750 and OIDC Core are separate cited sources. · Checked 2026-11-06

    Primary-source scope and access recorded in v12-ba-technical-audit-20261106.md. Advisory practice unless the cited instrument and its applicability establish a requirement.

    V34 review, 6 November 2026: Actual RFC9700 January2025§2.1–2.2,§2.4 and§4.7 read for current OAuth security: public-client PKCE required, confidential recommended; CSRF binding conditions, redirect exception and modern grant guidance.

  7. Market practiceOpenID ConnectCore 1.0 incorporatingerrata set 2,15December2023

    OpenID ConnectCore 1.0 incorporatingerrata set 2,15December2023 ↗ — OpenID Foundation · OpenID ConnectCore 1.0 incorporatingerrata set 2,15December2023. Opened definition of identity layer/authentication on topofOAuth2.0; access token is not an ID token.

    Opened definition of identity layer/authentication on topofOAuth2.0; access token is not an ID token. · Checked 2026-11-06

    Primary text read6November2026; see domain audit for scope and limits.

    V34 review, 6 November 2026: Actual OpenID Connect Core1.0 incorporating errata set2,15December2023 abstract/introduction and§2 ID-token purpose read. OpenID Connect adds identity/authentication to OAuth; ID-token and access-token purposes differ.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.