API authentication patterns
API keys, OAuth, mTLS and signed requests: which authentication pattern fits which client, and the mistakes that leak credentials.
Read guideTopic hub
A reference for the building blocks of modern software: APIs, REST and GraphQL, webhooks, authentication, databases, testing and deployment.
REST, GraphQL, webhooks, authentication and integration patterns.
Auth, idempotency, pagination, versioning, rate limits and testing.
API keys, OAuth, mTLS and signed requests: which authentication pattern fits which client, and the mistakes that leak credentials.
Read guideWhy clients retry, how idempotency keys prevent duplicate charges and records, and how to implement them without a science project.
Read guideCursor versus offset pagination, honest rate-limit headers, and how to be a polite API client.
Read guideWhen to version an API, how to add fields safely, and why `/v2` is not the first tool you should reach for.
Read guideContract tests, staging data and the few cases that catch most production API bugs.
Read guideHow Cache-Control, ETags and CDNs reduce latency — and how a wrong cache makes users see each other's data.
Read guideThree ways to notice that something happened in another system — latency, coupling and failure modes.
Read guideWhat cross-origin resource sharing is, why browsers block requests, and how to configure CORS without opening the API to the world.
Read guideWhy a machine-readable API spec beats a slide deck, and how to keep OpenAPI honest as the API changes.
Read guideHow to receive webhooks without trusting the open internet: signatures, timestamps, HTTPS and idempotent handlers.
Read guideWhen JSON-over-HTTP is enough and when a contract-first RPC protocol is worth the tooling — without declaring a universal winner.
Read guideA honest split: when one deployable is simpler, and when you are paying microservice cost without microservice benefit.
Read guideWhen a static API key is enough and when delegated OAuth is the safer model for acting on a user's behalf.
Read guideWhen to poll an API and when to receive webhooks — and how they work together.
Read guideHow event-driven design decouples systems and where message queues fit.
Read guideThe core ideas behind REST APIs: resources, HTTP methods, status codes and good design habits.
Read guideWhat webhooks are, how they differ from polling, and how to receive them securely and reliably.
Read guideTwo ways to build web APIs. Neither is universally better — the right choice depends on your clients and data shape.
Read guide