API Design

Resources, versions, pagination and contracts.

How to design APIs other people can rely on: HTTP from the ground up, REST resources, status codes and errors, payload design, pagination, idempotency, OpenAPI contracts, versioning and deprecation, gRPC, GraphQL, webhooks, real-time APIs, authentication with OAuth and tokens, API security, rate limits, caching, gateways and developer experience. Vendor-neutral: open standards (HTTP RFCs, OpenAPI, AsyncAPI, OAuth) alongside gateways from AWS, Google Cloud, Azure, Kong and others. By the end you can design, document and evolve an API without breaking the people who depend on it.

5
chapters
21
modules
~9h
of learning
21
live now
21 modules

Take modules in any order. The route suggests one that builds up naturally.

Take a look inside

The big picture, before the details

One request to a parcel API, from a partner's app through the gateway and back, with the promises around it. Watch the tour, or click any part.

partner appgatewaykey · limit · route/parcels/{id}200 · cursorIdempotency-Key: 9f1c…webhook: parcel.deliveredopenapi · v2one request's life, and the promises around it

A partner's app: calls the API over HTTP: a method, a path, headers and a body (modules 1–3).

A taste of module 7: page through a list while orders arrive or are cancelled. Offsets repeat or skip; cursors don't.

|
page 1120119118117116
page 2118117116115114

shown twice: 118, 117, 116

01

The big picture

What an API is, the HTTP underneath, and the main styles.

3 modules · 70 min

02

Designing REST APIs

Resources, methods, errors and the shape of the data.

5 modules · 120 min

03

Contracts and change

Describing an API precisely, and changing it without breaking anyone.

3 modules · 70 min

04

Beyond REST

Binary RPC, flexible queries, push and real time.

4 modules · 95 min

05

Security and operations

Who may call, how often, how fast, and how people find out.

6 modules · 165 min