API Design

Glossary

Every API Design term in plain words, with the module that teaches it. Inside modules, any word with a dotted underline explains itself.

API Design · 49 terms

A

Access token
A short-lived credential an app sends with each API request (often as 'Authorization: Bearer …') showing what it has been allowed to do, and for whom.
Learn it in “Authentication: keys, OAuth and tokens” →
API
Application programming interface: the set of requests one program accepts from others, and the answers it promises to give back. A web API is usually called over HTTP.
Think of it as: A restaurant menu: you order from it without walking into the kitchen.
Learn it in “What an API is” →
API consumer
A program (and the team behind it) that calls an API, also called a client. The team that builds and runs the API is the provider.
Learn it in “What an API is” →
API contract
Everything callers of an API can rely on: its addresses, the fields and types it sends and accepts, what its errors mean and how it behaves. Changing any of it can break them.
Learn it in “What an API is” →
API gateway
A server that sits in front of your APIs and handles shared concerns in one place, such as HTTPS, checking keys and tokens, rate limits, routing and logging, before passing requests to the right service.
Learn it in “Gateways and developer experience” →
API versioning
Labelling an API's contract with a version (in the path, a header or a parameter) so a new, incompatible version can run alongside the old one while clients move over.
Learn it in “Versioning and breaking changes” →
API-first
Designing and agreeing an API's contract before building the code behind it, so the teams that use it and the team that builds it can work at the same time.
Learn it in “What an API is” →
Authentication
Proving who is making a request, with something like an API key, a token or a certificate. Authorisation is the separate question of what that caller is allowed to do.
Learn it in “Authentication: keys, OAuth and tokens” →

B

Breaking change
A change to an API that makes some existing client stop working, such as renaming or removing a field, changing its type, adding a required input or tightening validation.
Learn it in “Versioning and breaking changes” →
Broken object level authorisation
An API flaw where a signed-in caller can read or change records that aren't theirs, usually just by changing an ID in the request, because the API doesn't check ownership on every request. First on the OWASP API Top 10.
Learn it in “Authorisation and API security” →

C

Cache-Control
The HTTP header that tells browsers, apps and CDNs whether and how long they may reuse a response, with directives such as max-age, no-cache, no-store and private.
Learn it in “Caching and performance” →
Collection
A resource that holds many resources of one kind, named with a plural noun, such as /books. GET lists them; POST adds one.
Learn it in “Resources and URLs” →
Cursor
In pagination, a token that marks where the last page ended, like a bookmark. The client passes it back to get the next page, which stays correct even if items are added or removed.
Learn it in “Pagination, filtering and sorting” →

D

Deprecation
Announcing that part of an API is going away and clients should move off it. A deprecated feature still works; it stops only at the sunset date.
Learn it in “Deprecation and lifecycle” →
Developer experience
How easy and pleasant an API is for developers to learn and use: documentation, examples, sandboxes, SDKs, clear errors and how quickly a newcomer can make a first successful call.
Learn it in “Gateways and developer experience” →

E

Enum
A field that may only hold one of a fixed list of values, such as a payment status of pending, succeeded or failed. New values may be added later, so clients should handle ones they don't recognise.
Learn it in “Request and response design” →
ETag
A version tag a server attaches to a response. Clients send it back with If-None-Match to ask 'has it changed?' (a 304 means no), or with If-Match to update only if nobody else changed it first.
Learn it in “Caching and performance” →

G

GraphQL
A query language for APIs, created at Facebook: the client sends a query naming exactly the fields it wants, usually to a single endpoint, and gets back just those.
Learn it in “GraphQL” →
gRPC
An open-source RPC framework, started at Google, in which one service calls functions on another over HTTP/2, usually with messages in Protocol Buffers. It supports streaming in either or both directions.
Learn it in “gRPC and Protocol Buffers” →

H

HMAC signature
A code computed from a message and a shared secret key. The receiver recomputes it to check the message came from someone holding the secret and wasn't altered on the way.
Learn it in “Webhooks and async APIs” →
HTTP
Hypertext Transfer Protocol: the request-and-response protocol browsers and most web APIs use. A client sends a request (method, path, headers, maybe a body); the server answers with a status code, headers and usually a body.
Learn it in “HTTP from the ground up” →
HTTP header
A name-and-value line attached to a request or response, carrying information about it, such as Content-Type (the body's format) or Authorization (who is calling).
Learn it in “HTTP from the ground up” →
HTTP method
The verb at the start of a request saying what the client wants done, such as GET (read), POST (create or act), PUT (replace), PATCH (change part) or DELETE (remove).
Learn it in “HTTP from the ground up” →
Hypermedia (HATEOAS)
Short for 'hypermedia as the engine of application state': responses include links to related resources and to the actions allowed next, so clients can follow them instead of building URLs themselves.
Learn it in “Resources and URLs” →

I

Idempotency key
A unique value a client generates for one operation, such as a payment, and sends with every retry. The server remembers the result for that key and replays it instead of doing the operation again.
Learn it in “Idempotency and safe retries” →
Idempotent
Having the same effect whether a request is made once or many times. PUT and DELETE are idempotent; POST is not, which is why retrying a POST can create duplicates.
Learn it in “Idempotency and safe retries” →

J

JWT
JSON Web Token (RFC 7519): a compact token of base64url-encoded JSON claims, such as issuer, subject, audience and expiry, usually signed. Anyone can read a signed JWT; the signature only stops changes.
Learn it in “Authentication: keys, OAuth and tokens” →

M

Mass assignment
Copying every field a client sends straight onto a stored object, so a caller can set fields they shouldn't, such as role or balance. Prevented by accepting only an allow-list of editable fields.
Learn it in “Authorisation and API security” →

O

OAuth 2.0
A standard (RFC 6749) that lets a user give an app limited, revocable access to their data on another service, via access tokens, without sharing their password.
Think of it as: A valet key: enough to park the car, not to open the boot.
Learn it in “Authentication: keys, OAuth and tokens” →
OpenAPI
A standard, machine-readable format (YAML or JSON) for describing an HTTP API: its paths, operations, parameters, data schemas and errors. Tools turn it into documentation, mock servers, tests and client code. Formerly called Swagger.
Learn it in “OpenAPI and contract-first design” →
PKCE
Proof Key for Code Exchange (RFC 7636): the app creates a secret, sends only its hash when the user signs in, and reveals the secret when swapping the code for a token, so an intercepted code is useless.
Learn it in “Authentication: keys, OAuth and tokens” →
Polling
A client asking an API again and again, on a schedule, whether anything has changed. Simple, but most requests return nothing new and changes are noticed late.
Learn it in “Webhooks and async APIs” →
Problem Details
A standard JSON format for HTTP API errors (RFC 9457), with fields such as type (a URL naming the kind of problem), title, status, detail and instance, served as application/problem+json.
Learn it in “Methods, status codes and errors” →
Protocol Buffers
Google's compact binary format for structured data. Messages are defined in .proto files, each field with a number; only the numbers and values are sent, which makes messages small and fast to parse.
Learn it in “gRPC and Protocol Buffers” →

Q

Quota
A limit on how much of a service a client may use over a longer period or hold at once, such as calls per day or number of servers, often tied to a pricing plan.
Learn it in “Rate limits and quotas” →

R

Rate limit
A cap on how many requests a client may make in a period, such as 5,000 an hour. Requests over the limit are refused, usually with 429 Too Many Requests and a Retry-After header.
Learn it in “Rate limits and quotas” →
Resolver
In GraphQL, the server function that fetches the data for one field. A query is answered by running the resolvers for every field it asks for, which can add up to many database calls.
Learn it in “GraphQL” →
Resource
In REST, any thing the API lets you work with that can be named, such as a book, a member or a loan. Each resource has its own URL.
Learn it in “Resources and URLs” →
REST
Representational State Transfer: an API style organised around resources, each with its own URL, acted on with standard HTTP methods. Described by Roy Fielding in 2000; in everyday use it means resources, URLs and HTTP methods.
Learn it in “REST, RPC, GraphQL and events” →
RPC
Remote procedure call: an API style where the client calls a named function on another computer, with arguments, as if it were local. gRPC and JSON-RPC are examples.
Learn it in “REST, RPC, GraphQL and events” →

S

Safe method
An HTTP method that only asks to read, not to change anything, such as GET or HEAD. Clients, caches and crawlers can send safe requests freely.
Learn it in “HTTP from the ground up” →
Server-sent events
A way for a server to push a stream of events to a client over one long-lived HTTP response (content type text/event-stream). One-way, with automatic reconnection in browsers.
Learn it in “Real-time APIs” →
Status code
The three-digit number at the top of an HTTP response saying how the request went: 2xx success, 3xx redirection, 4xx a problem with the request, 5xx a problem on the server.
Learn it in “HTTP from the ground up” →
Sunset
The date a deprecated API or version stops working. The Sunset HTTP header (RFC 8594) tells clients when it will happen.
Learn it in “Deprecation and lifecycle” →

T

Token bucket
A rate-limiting method: each client has a bucket of tokens that refills at a steady rate; each request spends one, and requests are refused when it's empty. Short bursts are allowed up to the bucket's size.
Think of it as: A water tank filling slowly from the mains: you can run a bath fast, but not all day.
Learn it in “Rate limits and quotas” →

U

URL
Uniform Resource Locator: the address of a resource, such as https://api.library.example/books/42. Its parts are the scheme, the host, the path, an optional query (after ?) and fragment (after #).
Learn it in “Resources and URLs” →

W

Webhook
An HTTP request an API sends to a URL the client chose, to tell it something happened, such as a payment succeeding. The client doesn't have to keep asking.
Learn it in “Webhooks and async APIs” →
WebSocket
A protocol that upgrades an HTTP connection into a long-lived, two-way channel, so client and server can each send messages at any time. Used for chat, games and live collaboration.
Learn it in “Real-time APIs” →

General terms · shared by every track

A

ACID
Four guarantees for transactions: Atomic (all or nothing), Consistent (rules hold), Isolated (concurrent work doesn't interfere), Durable (once done, it stays done).
Learn it in “ACID on object storage” →
Atomic
All or nothing. An atomic change either happens completely or not at all, and nobody ever sees it half done.
Think of it as: Handing over a sealed envelope: the other person has it or doesn't. There's no half-handed envelope.
Learn it in “Object storage: the ground floor” →

B

Batch processing
Processing data in scheduled chunks, such as every night or every hour.
Learn it in “Getting data in” →

C

CSV
Comma-separated values: plain text, one row per line. Easy to read, slow and large for analytics, and no schema.
Learn it in “Rows vs columns: file formats” →

I

Idempotent
Safe to run twice: running the job again gives the same result instead of duplicating data.
Learn it in “Medallion architecture” →

J

JSON
A text format of nested key-value objects, like {"id": 7}. Common for app events and APIs, and used by Delta's transaction log.
Learn it in “Rows vs columns: file formats” →

M

Metadata
Data about data: which files exist, their schema, sizes and statistics. Engines read metadata first to plan work.
Learn it in “What makes a table a table” →

S

Schema
The structure of a table: its column names and types, such as order_id: long, amount: decimal.
Learn it in “Schema evolution & enforcement” →
SQL
The standard language for querying tables: SELECT … FROM … WHERE …
Learn it in “Hands-on: query in your browser” →
Streaming
Processing data continuously as it arrives, within seconds or minutes.
Learn it in “Getting data in” →

T

Transaction
A group of changes that succeeds or fails as one unit.
Think of it as: A money transfer: debit one account and credit the other, or do neither.
Learn it in “ACID on object storage” →