WHAT IT IS
Modern web APIs fall into four dominant styles: REST (resource-oriented, HTTP-verb-driven, the default for most public APIs), GraphQL (client-specified queries against a typed schema), gRPC (binary, high-throughput, service-to-service), and webhooks (event-driven push from server to client). OpenAPI 3 is the standard specification format for REST APIs; schemas are published, versioned, and used to generate clients and docs automatically.
HOW IT WORKS
A production API needs authentication (OAuth 2.0, API keys, mTLS), rate limiting, versioning, observability (logs, traces, metrics), and a published contract. Breaking changes move to a new major version; additive changes ship without breaking existing clients.
WHEN TO USE
Design an API whenever multiple systems need to integrate, when you want to open capability to partners or customers, or when a monolith must be decomposed into services.