Skip to content
App development

API design for business apps: building an API that outlives its first app

Easy Insight Team ·

An API outlives its first app when it describes your business rather than one screen. Name resources after things the business recognises, return errors in one standard format, write the contract down in OpenAPI, and never break existing clients: add rather than change, and version only when you must. Plan retirement before you need it.

Why does the first app's API matter so much?

Most business apps start with one client: a web app, or a mobile app for field staff. The API behind it is often shaped around that one client's screens, because that is the quickest way to ship. It works until the second consumer turns up. That might be a mobile app alongside the web app, a customer who wants to integrate, a CRM or ERP connection, or a Power BI report that needs the same data.

At that point an API built for one screen has to be either rebuilt or worked around, and workarounds tend to become permanent. The rules below are cheap to follow at the start and expensive to retrofit. They come from published standards, mainly the UK government's API technical and data standards (GOV.UK, last updated 30 September 2026), Microsoft's web API design best practices and Google's API improvement proposals. The selection and the SME framing are our view.

What should the API be built around?

The business, not the screens. Microsoft's guidance is to "use nouns for resource names": /orders, /customers, /jobs, rather than /getDashboardData or /saveStep3. A screen-shaped endpoint bundles whatever one page happened to need. A resource-shaped one can be combined by any client.

Two tests help when reviewing a design:

  • Would someone in the business recognise the names? If the API talks about orders, quotes and site visits, a partner can read it. If it talks about panels and wizards, it is describing your front end.
  • Could a second app use it without changes? Picture a mobile app or a reporting tool calling the same endpoints. If it would need its own special endpoints for basic data, the design is too close to the first client.

Names matter for another reason too. GOV.UK says the names of the resources an API provides "should not change between versions". Choose them carefully once.

How do you change an API without breaking the apps that use it?

Treat every existing client as something you must not break. Google's guidance on backwards compatibility (AIP-180) puts it plainly: old clients "must be able to work against newer servers". In practice that splits changes into two groups.

Change Safe for existing clients? Why
Add a new endpoint Usually yes Old clients never call it
Add an optional field to a response Usually yes Well-behaved clients ignore fields they do not know
Add a new required field to a request No Every old client's request now fails
Remove or rename a field No Google treats a rename as a remove plus an add
Change a field's type or default value No Old clients misread the data, often silently
Change what an error code means No Clients make decisions on error codes

Sources: Google AIP-180 and Microsoft Learn web API design (as of November 2026).

The left column is where most changes should land. When you need a field to work differently, add a new field alongside the old one, move clients across, and only then retire the old one. It takes longer than editing in place, but nothing breaks on the day.

One habit makes this easier: build clients to ignore fields they do not recognise. The standard for error responses has the same rule built in, so it is worth adopting across the board.

When do you actually need a new version?

Only when a breaking change is unavoidable. GOV.UK's standard is to try not to make changes that stop older versions working, and when you must, to put the version in the URI. It calls URI versioning "the simplest and most commonly used way to version an API", and advises against custom headers and media types because proxies and firewalls can block them.

So /v1/orders from the start costs nothing and gives you somewhere to go. What it should not become is an excuse: a new version for every change means running and supporting several APIs at once. GOV.UK also says to keep the number of active versions to a minimum.

How should errors look?

Consistent, standard and safe. GOV.UK's standard is to use the normal HTTP status codes and document every error the API can return. For the body, there is a published standard: RFC 9457, Problem Details for HTTP APIs (July 2023). It defines a small JSON shape with a type, title, status and detail, and says the detail "ought to focus on helping the client correct the problem".

Using it means every client handles errors the same way, whichever endpoint failed. Both GOV.UK and the RFC also warn against exposing internals: a stack trace or database message in an error response helps an attacker more than it helps your users.

How do you write the API down?

In an OpenAPI description. The OpenAPI Specification (version 3.2.1, published 10 September 2026) is the standard, language-neutral way to describe an HTTP API so people and tools can understand it without reading the source code. From one file you get readable documentation, generated client code and automated checks that a change has not broken the contract.

For a business commissioning software, the OpenAPI file is also part of what you own. It belongs on the list of things to receive at handover, alongside the code and the accounts, and it is one of the first things a technical due diligence review will ask for.

How do you retire an old version without upsetting anyone?

Announce it, date it and keep it running until the date. GOV.UK says that before retiring an old version "you must tell users it is no longer supported". Two published HTTP headers let the API carry that message to client software as well as to people:

  • Deprecation (RFC 9745, March 2025) tells a client that an endpoint is, or will be, deprecated. Deprecation itself changes no behaviour: the endpoint still works.
  • Sunset (RFC 8594, May 2019) gives the date after which the endpoint is expected to stop responding, and can link to a page explaining how to migrate.

The notice period is a business decision. A few weeks may be fine for your own mobile app; a customer's integration built by their supplier needs much longer.

What about security?

Decide it once, for every client. GOV.UK's standard is OAuth 2.0 with scopes and "never use basic authentication"; it also advises against API keys, and says everyone should authenticate where personal data is involved. Scopes matter for reuse: a reporting tool that only reads orders should not hold the same access as the app that creates them. If your SaaS stack uses a hosted identity provider, it will usually support this.

Frequently asked questions

What makes an API reusable by more than one app?

It describes the business, not the first screen. Resources are named after things the business recognises, such as orders and customers, it returns errors in one consistent format, and it is written down in an OpenAPI description. A second app or a partner can then use it without reading the first app's code.

Do I need to version my API from day one?

You need a plan from day one, not necessarily a version two. GOV.UK's API standards say to avoid changes that stop older versions working and, when a breaking change is unavoidable, to put the version in the URI. Adding optional fields is usually safe without a new version.

What counts as a breaking change in an API?

Anything that stops an existing client working. Google's API guidance lists removing or renaming a field, changing its type, changing a default value and adding a new required field to an existing request. Adding a new endpoint or an optional field is generally safe.

How should an API retire an old version?

Announce it, give a date and keep the old version running until then. GOV.UK says you must tell users before an old version stops being supported. The Deprecation and Sunset HTTP headers let the API itself tell client software what is being retired, and when.


Planning an app that other systems will need to talk to? See how we build apps, SaaS products and custom web apps, or tell us what it needs to connect to.

Easy Insight is a UK consultancy for AI, web, apps and data — senior specialists only, no juniors.

Next step

Have an app or a product in mind?

We build mobile apps and SaaS products end to end, and run two of our own, Manifold and Quarterly, so the advice comes from production, not a pitch. Apps from £6,000, SaaS and MVP builds from £12,000, fixed price in writing.

Keep reading