APIs as Products: Why Developer Experience Is a Systems Problem

Stripe built an API a developer with no prior experience can go from zero to a first successful charge on in under ten minutes. That number is not a documentation achievement. It is an activation rate, measured and designed with the same rigour a consumer product brings to its onboarding flow — because for an API, the developer is the user, time-to-first-successful-call is the activation metric, and the ease of learning, integrating, and building on the API is its product quality.

Most teams do not frame it that way. They think of an API as an interface between systems, defined by the technical requirements on either side, and they judge it correct if it faithfully exposes what the system does and returns the expected output. That frame produces technically correct APIs that are miserable to use, because an API that exposes what the system does is always harder to use than one that exposes what the caller wants to accomplish. Treating the API as a product changes the questions asked, the tradeoffs made, and what "done" looks like — and it starts with designing from the outside in.


Model the Domain the Caller Thinks In

The single highest-leverage principle is to expose the domain's concepts rather than the system's internals. Stripe's API exposes charges, customers, and subscriptions — the things a developer already thinks about — not transactions, entities, and billing cycles. The contrast is concrete. An e-commerce system with internal orders, line_items, shipping, and payments tables can expose an inside-out API that mirrors them: POST /orders to create an empty order, then a call per line item, then a shipping call, then a confirm call. Four round trips, a sequence the caller must get right, and a system that rejects or corrupts state if shipping arrives before line items. The caller has become a choreographer for the server's internal state machine.

The outside-in API asks what the caller wants — place an order — and answers with one endpoint: POST /orders carrying items, address, and payment, handled as a single atomic operation. One round trip, no half-created orders, no knowledge of the internal sequence, and the freedom for the server to restructure its tables without touching the external contract. Two more principles carry the rest of the weight: make the common case easy and the advanced case merely possible (the modal operation should need minimal input and return maximal useful output), and return exactly enough to act on — a response that forces a second call to interpret is a leaky abstraction, and one that dumps every database field is noise.


The Tradeoff: AT8 — Coupling vs Cohesion

The domain-first API is a deliberate AT8 choice: it pushes coordination complexity into the server, where one team manages it once, and decouples every caller from the internal orchestration. The implementation-first API does the opposite — it is cheaper to design because the implementation already exists, but it couples every caller to internal details that are likely to change, and the coupling is paid by every integrator, forever. The cost of the better design is real and it lands up front: modelling the domain requires understanding what users want to accomplish, which is not always known when the API is first drawn. You are trading design investment now against caller stability later, and the asymmetry is the whole argument — the cohesion you buy on the server side is leverage, because the alternative is the same coordination logic re-implemented, independently and inconsistently, in every client.

A second AT8 decision governs versioning. Aggressive versioning decouples the team from legacy callers so the current version can evolve freely — but maintaining two live versions costs closer to three times the single-version work, because testing is combinatorial (what happens when a v1 caller touches data a v2 caller created?), documentation forks, and every support ticket triages against two behaviours. The resolution is to bound versioning's cost with an explicit, public lifecycle: current, supported, deprecated with Sunset and Deprecation headers, then 410 Gone — Stripe's model gives callers two years of stability and the team a bounded maintenance window.


Where It Fails: FM8 — Schema/Contract Violation

The signature API failure is a contract violation, and Hyrum's Law guarantees it: with enough users, every observable behaviour of your system will be depended upon by somebody, regardless of what the contract promises. If results come back ordered by internal database ID, callers will depend on that order. If timestamps carry a timezone, callers will assume it. A Google team learned this when a protobuf library changed its field serialisation order in a routine upgrade and hundreds of downstream services — which had parsed by field position rather than name — broke at once. The discipline that follows is counterintuitive: decide before shipping exactly what you want callers to depend on, document that, and then make everything else actively unstable, so that no caller can quietly come to rely on a behaviour you never promised. There are concrete techniques for manufacturing that instability at the ordering, timing, and field-naming layers — but the mindset is the point, and it is the opposite of the instinct to keep responses as stable and predictable as possible.

The same failure mode defines the inside-out API's worst form: a multi-call workflow with no transaction boundary. A registration API that needs POST /users, then PUT .../preferences, then POST .../avatar has no atomicity across the three, so a failed avatar upload leaves a half-created profile that no single endpoint's contract accounts for — and every caller must independently invent compensating logic to retry, roll back, or tolerate the inconsistent state. The mitigation is the domain-first collapse into one atomic endpoint, backed by the explicit contract defences the best APIs ship — machine-readable error structures that let a caller handle failure programmatically rather than by parsing prose, and idempotency so a timed-out write can be retried without a double effect. Stripe's handling of both is the reference worth studying. And the internal/external divide needs explicit governance — internal APIs can break because all callers are under one team's control; external ones cannot break without violating a product commitment, and teams that blur the line eventually break customer integrations while fixing internal ones.


The Signal That Tells You This Applies

The signal is a stopwatch: when a developer spends more than about fifteen minutes finding the right endpoint for a common operation, the API's information architecture has already failed, whatever its reference docs say. Time-to-first-successful-call is the diagnostic, and it behaves exactly like a consumer onboarding funnel — every unit of cognitive overhead (understanding what the API does, finding the endpoint, constructing a valid request, interpreting the response, debugging the failure) is friction, and friction is abandonment. A developer who gives up on an integration is a lost user in precisely the way a consumer who quits onboarding is, with one difference that makes API consumers less forgiving: a broken integration costs them engineering time to fix, not a click to dismiss.

The counter-signal keeps the product framing honest about timing. Breaking changes are cheap early, when few callers exist, and grow exponentially more expensive as the caller base grows — so the correct moment to invest in stability is before callers depend on your instability, not after a breaking-change-on-a-minor-version release has already eroded trust. Decide what is contractual and make the rest unstable on purpose, collapse multi-call workflows into atomic operations, and bound every version commitment with a published lifecycle — which raises the question the platform-strategy layer above the API has to answer: once the API is genuinely a product with external customers, which capabilities belong in it at all, and which are products in their own right with their own roadmaps?


The full framework treatment — developer-experience-as-product-quality, inside-out versus outside-in design, the three design principles, Hyrum's Law and its defensive techniques, the 3× cost of versioning and the 24-month lifecycle, Stripe's structured errors, idempotency keys and expandable objects, internal/external governance, compression blocks, and reflection and design exercises — is in Book 7: Product Strategy, Chapter 5 (APIs as Products). Free chapter available at computingseries.com/books/book7.