MODULE 5 OF 6 · FOUNDATIONS

Platforms, Journeys, and APIs

30 min 3 outcomes API flow diagram + quiz

By the end of this module you will be able to:

  • Explain two-sided and multi-sided platform models and their network effect dynamics
  • Apply customer journey mapping to identify where digital investment addresses real friction, not just adds a new channel
  • Distinguish between API-first design and API-last integration, and describe the architecture of an API gateway

Over 600 apps built on one public API

Transport for London operates one of the world's most complex transit networks: 11 Underground lines, 700 bus routes, the Overground, the Elizabeth line, river services, and cycling infrastructure. In 2010, TfL made a decision that most public sector organisations would not consider: it opened its operational data to the world through a free public .

Developers could access real-time train arrivals, bus stop data, fare information, disruption alerts, and journey planning data. By 2017, over 600 apps were running on TfL open data, and 42% of Londoners used one of them, alongside the 83% who used TfL's own website. The point is not that the apps displaced the website. It is that the journey planning capability TfL had built once was replicated and improved by an ecosystem of developers it had never employed and never needed to manage, reaching people the website alone did not.

The TfL case illustrates the central argument of this module: thinking and openness create value through network effects. TfL did not build 600 apps. It built an API and a set of rules, and an ecosystem built the apps. The improved because TfL opened its data, not because TfL built every interface.

What benefits did opening up TfL's API create for the broader ecosystem?

Platforms are not just software estates. They create rules for participation, reuse, data access, and value exchange.

5.1 Platform business models and network effects

A platform is a business model that creates value by facilitating interactions between two or more participant groups, rather than by producing goods or services directly. Platforms provide the infrastructure, rules, and matching mechanisms that make those interactions possible.

Airbnb does not own hotels. Uber does not own vehicles. Amazon Marketplace does not own inventory. Each facilitates a transaction between supply (hosts, drivers, sellers) and demand (guests, riders, buyers). The platform captures a share of the value created by that facilitation.

Network effects are the mechanism by which platforms compound in value. Each additional participant makes the platform more valuable to all existing participants. Direct network effects (same-side): more drivers reduce wait times for all riders. Indirect network effects (cross-side): more buyers attract more sellers to Amazon Marketplace, making the selection better for all buyers.

Public sector platforms follow the same model. The NHS App is a platform connecting patients to services (GP booking, vaccination history, organ donation preferences, prescriptions). HMRC is a platform providing tax filing, VAT, PAYE, and self-assessment services through a single authenticated gateway. GOV.UK One Login is an identity platform. Each creates value by connecting participants, not by delivering a product.

Government as a platform means providing shared digital infrastructure, registers, and APIs that departments and citizens can build on, rather than each department building its own independent systems.

Tim O'Reilly, Government as a Platform, Innovations journal - Volume 6, Issue 1, 2011

O'Reilly's framing anticipated the GDS (Government Digital Service) model by two years. When GDS published the GOV.UK design system, Notify, Pay, and the GOV.UK sign-in service, it was building government as a platform: shared components that any department could use rather than procuring independently. The economic argument is the same as for commercial platforms: shared infrastructure reduces duplication.

Platforms create the infrastructure. Customer journey mapping ensures that infrastructure is deployed where it actually reduces friction rather than simply adding a new digital channel.

5.2 Customer journey mapping

A customer journey map is a visual representation of the steps a person takes to accomplish a goal, spanning every touchpoint with an organisation or service. A well-constructed map documents actions, emotional state, pain points, and the systems involved at each step.

Journey mapping should precede technology selection. Understanding the current journey reveals whether the problem requires a new application, an API integration, a process change, or no new technology at all. Vehicle tax renewal illustrates the method. A citizen who wants to tax a vehicle needs the vehicle taxed; nothing in that need names a counter, a form or a channel. Mapping the journey separates the steps that carry the need from the steps that exist because of how the previous system was built, and only the second kind can be removed without cost. GOV.UK now offers the service online, by phone and at a Post Office, so the counter survives as one route among several rather than as the route. A team that had skipped the mapping would have digitised the counter instead of asking whether it had to be there at all.

GOV.UK Service Standard, Point 1 of 14, requires digital teams to "understand users and their needs" before designing a service. This is journey mapping institutionalised as a quality gate.

You must understand the user needs, including the user's wider problem, not just the specific task they want to carry out with the service.

GOV.UK Service Standard, Point 1: Understand users and their needs - Government Digital Service, current edition

The GOV.UK Service Standard applies to all central government digital services. Point 1 specifically prevents teams from jumping to technical solutions before understanding the journey. The vehicle tax example shows the consequence: a counter visit is a property of how a service was built, not a thing the citizen needs, and a team that skips journey mapping tends to digitise the counter rather than ask whether it has to be there.

Customer journey versus service blueprint

Five arrows drop through the line of visibility, one from each journey step to the backstage work carrying it, so a step that fails for the user can be traced to the specific process behind it rather than to the journey as a whole.

Customer journey shows what the user sees; service blueprint shows what crosses the line of visibility. Both are needed; missing one hides the failure mode. Shostack (1984); GOV.UK Service Manual.

Customer journey above the line of visibility, service blueprint below Two parallel horizontal lanes, each with five step cards. The top lane is the customer journey: what the user sees and feels at each step. The bottom lane is the service blueprint: what the service does behind the scenes at each step. A dashed LINE OF VISIBILITY runs between the lanes. Five red arrows drop from each journey step to its matching blueprint step, joining the visible action to its backstage support. CUSTOMER JOURNEY what the user sees and feels SERVICE BLUEPRINT what the service does behind the line STEP 1 Discover User notices theservice STEP 2 Apply Submits information STEP 3 Process Waits for outcome STEP 4 Receive Receives result andevidence STEP 5 Follow-up Asks questions,escalates LINE OF VISIBILITY STEP 1 Discover Marketing, search,referrals STEP 2 Apply Form validation,identity check STEP 3 Process Workflow, checks,decisions STEP 4 Receive Notification,document service STEP 5 Follow-up Support, complaints,learning loop

Common misconception

Platforms are only relevant for consumer technology companies.

The NHS App is a platform. HMRC is a platform. GOV.UK Sign In is an identity platform used across 50+ government services. Any organisation that creates value by connecting participants rather than producing goods directly is operating as a platform. Financial services firms with API-based partner ecosystems, logistics companies with carrier networks, and NHS trusts with referral management systems all exhibit platform economics. The question is not whether a platform model applies, but whether the organisation is designing for it deliberately.

Journey mapping reveals what to build. API-first design determines how to build it so that other systems and services can connect to it without friction.

5.3 API-first design

API-first design means designing the API contract before writing any implementation. The API is the primary product. The user interface, if one exists, is a consumer of that API rather than the source of its design.

API-last design produces the opposite: an application is built first and an API is bolted on afterwards as an integration mechanism. API-last APIs reflect the application's internal structure rather than the needs of API consumers. They use inconsistent naming, break with application releases, and generate integration friction from the first external consumer onward.

GOV.UK API technical and data standards require API teams to design for user needs, security, documentation, versioning, monitoring, and clear support responsibilities. They recommend OpenAPI documents for RESTful APIs, but the current public standard should not be paraphrased as mandating a precise OpenAPI minor version, semantic versioning, or a universal fixed deprecation period unless a service standard or catalogue rule explicitly says so.

API-enabled service integration

Four controls surround the contract, ownership, versioning, security and observability, and each names the artefact it has to produce, a RACI and on-call rota, a change log, rate limits, SLOs and traces, turning a published API with none of them into a promise nobody has to keep.

An API is a service contract bound by four controls: ownership, versioning, security, observability. Each control publishes an artefact; missing any one turns the contract into a liability. OpenAPI 3.2.0, GOV.UK API guidance, OWASP API Top 10, Google SRE.

An API contract bound by four published controls Central API contract card with four control spokes (Ownership at the top, Versioning on the right, Security at the bottom, Observability on the left). Each spoke names the control, the artefact it produces, and the authoritative source citation. Arrows connect each spoke to the central API card. API CONTRACT API contract Shape of request, response, error. OpenAPI, AsyncAPI, GraphQL, gRPC. CONTROL GOV.UK Ownership Service owner, RACI, on-callrota CONTROL GOV.UK API Versioning Policy, dates, change log CONTROL OWASP API 2023 Security Auth, scopes, rate limits,audit trail CONTROL Google SRE Observability SLOs, errors, traces, logs

The diagram below shows the lifecycle of an API request through an API gateway. Click "Run request" to step through each phase.

Loading interactive component...
Loading interactive component...

API-first design covers synchronous request-response patterns. The next section examines the push-based alternative: webhooks and event-driven integration.

5.4 Webhooks and event-driven integration

A webhook is a push-based notification mechanism: when an event occurs in a system, that system calls a URL registered by the consuming application. Stripe uses webhooks to notify merchants when a payment succeeds, fails, or is disputed. The merchant registers a callback URL; Stripe posts the event JSON payload to that URL when the event fires.

The alternative is polling: the consuming application repeatedly requests the producing system to check whether anything has changed. Polling introduces latency (missing events between poll intervals), generates unnecessary load on the producing system during quiet periods, and scales poorly as consumer count grows. For a fraud detection system that needs to act on a payment event within milliseconds, polling at 60-second intervals is not viable.

GitHub webhooks deliver build triggers, code review events, and deployment notifications to CI/CD pipelines. A push to a repository fires a webhook that triggers a build in GitHub Actions, Buildkite, or Jenkins. The push event is delivered within seconds; a polling approach would add latency proportional to the polling interval.

Loading interactive component...

Common misconception

API-first design means building APIs before building any products.

API-first means designing the API contract - the operations, request/response schemas, error codes, and versioning policy - before writing the implementation. It is a design sequence, not a build sequence. A team can design an HTTP API contract collaboratively using OpenAPI 3.2.0, run mock servers against it to test consumer assumptions, and build the implementation in parallel with consumer integrations. This is contract-first development, and it prevents the API-last problem of implementation details leaking into the interface.

Webhooks handle individual notifications between systems. An API gateway manages all traffic in and out of an organisation's services - the connective tissue that makes the whole ecosystem workable at scale.

5.5 API gateway patterns

An API gateway sits between API consumers and backend services. It handles cross-cutting concerns that would otherwise be duplicated across every service: authentication and authorisation, rate limiting, request routing, protocol transformation, and logging.

Without a gateway, every backend service must implement its own authentication, rate limiting, and observability. In a microservices estate of 50 services, that is 50 independent authentication implementations that may be inconsistently maintained. A gateway implements these concerns once and applies them consistently to all traffic.

Kong (open-source, released 2015), AWS API Gateway (managed service), and Azure API Management are the most widely deployed solutions. The FCA's Open Banking directory required each of the nine CMA banks to deploy an Open Banking-compliant API gateway capable of handling third-party provider (TPP) authentication and consent management. That regulatory requirement standardised gateway patterns across UK retail banking.

Platform boundary model

Each of the three boundaries names both the contract crossing it and the test enforcing it, contract tests on every pull request, an integration suite per service, forwards-compatible migrations, so a boundary with no test attached is a naming convention rather than a constraint.

Each trust boundary has a contract and a test. Skipping the test turns the boundary into an interface that leaks both ways. OWASP ASVS, GOV.UK Service Manual, 12-Factor App.

Four-layer platform with named trust boundaries between layers Four horizontal layer cards stacked vertically: L4 Front end, L3 API (emphasised), L2 Back end, L1 Data. Between each pair of layers a dashed trust-boundary card names the contract that crosses the boundary and the test that enforces it. UI-to-API: typed responses, contract tests per PR. API-to-back-end: command and event schemas, integration suite. Back-end-to-data: data product schema, forwards-compatible migrations. L4 Front end Browser, mobile, kiosk. Renders state, handles input. TRUST BOUNDARY: UI to API Contract: typed responses. Test: contract tests on every PR. L3 API Request, response, error contract. OpenAPI, AsyncAPI, gRPC. TRUST BOUNDARY: API to back-end Contract: command and event schemas. Test: integration suite per service. L2 Back end Business logic, workflow, integration. Owned by service team. TRUST BOUNDARY: back-end to data Contract: data product schema. Test: migrations forwards-compatible. L1 Data Stores of record. Schemas, lineage, retention, encryption.
Loading interactive component...
5.7 Check your understanding

The CMA's Retail Banking Market Investigation Order 2017 required the nine largest current account providers in Great Britain and Northern Ireland, the CMA9, to implement standardised Open Banking APIs by January 2018. Third-party providers subsequently built products on those APIs. A bank executive argues that Open Banking benefited challengers more than incumbents. What is the most accurate economic analysis of this outcome?

A housing association wants to digitalise its repairs booking process. Residents currently phone a contact centre, a staff member manually books a contractor, and a letter confirms the appointment. The digital team wants to build a mobile app. An adviser suggests journey mapping first. The project manager says they already know residents want a digital booking option. What is the strongest argument for completing the journey map before building the app?

A retail bank exposes an API for mortgage application status. Partner brokers integrate with it. After 18 months, the bank updates its internal processing system and changes the response schema, breaking 12 broker integrations. A technical lead argues this is an API-first design failure. What is the most accurate assessment?

Core distinctions

  • Platform business models create value by connecting participants rather than producing goods. NHS App, HMRC, and GOV.UK One Login are platforms in the government context, not just consumer technology companies.
  • Customer journey mapping should precede technology selection, because it separates the steps that carry the user need from the steps that exist only because of how the previous system was built. Removing a system constraint is worth more than digitising it.
  • API-first design treats the API contract as the primary artefact. For HTTP APIs, OpenAPI 3.2.0 is the current source-backed specification to use when a current OpenAPI version is needed. API-last design produces interfaces that reflect internal structure and break with application changes.
  • Webhooks replace polling with push-based event delivery. Stripe, GitHub, and Open Banking all use webhooks; polling introduces latency and generates unnecessary load on producers.
  • API gateways handle authentication, rate limiting, routing, and observability for all traffic, replacing per-service implementations with a single consistent layer.

Standards and sources cited in this module

  1. Open Banking Limited, Open Banking Impact Report, March 2023

    Active user statistics and regulated provider figures

    Open Banking Limited's own reporting on how the CMA9 mandate turned into working APIs and third-party products, which is the example this module uses for a regulated platform interface.

  2. GOV.UK Service Standard, Government Digital Service

    Point 1: Understand users and their needs

    The government digital service design quality gate cited in Section 5.2 as the institutionalisation of journey mapping as a prerequisite for service delivery.

  3. Tim O'Reilly, Government as a Platform, Innovations journal

    Volume 6, Issue 1, 2011

    The conceptual framework for government platform thinking quoted in Section 5.1. Anticipated the GDS design system, GOV.UK Notify, and GOV.UK Pay by two years.

  4. GDS API Technical Standards, GOV.UK

    API design principles, OpenAPI requirements, versioning policy

    The government API design standards referenced in Sections 5.3 and 5.5. The current public guidance covers API-first design, security, versioning, monitoring, support, and OpenAPI documents for RESTful APIs without being reduced to a single OpenAPI version.

  5. Tax your vehicle, GOV.UK

    Ways to tax a vehicle

    The service page behind the worked example in Section 5.2. It shows the renewal running online, by phone and at a Post Office, which is the point the example turns on: the counter is one route among several rather than the route.

Platforms and APIs create the connective tissue of digital systems. The next module examines what can go wrong: the risks, governance gaps, and technical debt that accumulate when digitalisation proceeds without structured oversight.

Module 5 of 28 · Foundations