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.
- Read the menu
- Send the request
- System does the work
- Response returns
- Caller uses the answer
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| The printed menu | The API description of what may be asked |
| Ordering a dish | Sending a request |
| The dish that arrives | The response |
| The kitchen the guest never sees | The system inside, which stays hidden |
| A new menu for a new season | A 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.
| In the trick | What it stands for |
|---|---|
| Request | A message that asks a system to do or give something |
| Response | The reply a system sends back to a request |
| Menu | The 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
- 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)
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.
- 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)
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.
- 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)
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
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.
- 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.
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.
- 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.
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.
- 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.
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.