liveBook · Manning

Internal API

As explained in The Design of Web APIs, Second Edition

An internal API is an application programming interface exposed for use within an organization's systems or network.

An internal API is an interface exposed for use within an organization’s systems or network. It may serve one team, several teams, or applications across the organization, and can still be exposed over the internet. section 1.1.4 section 1.8

Internal APIs deserve deliberate design because they affect development, security, infrastructure efficiency, costs, and end-user experience. Designing them also builds practice for partner and public APIs. section 1.3.1 section 1.8

One organization, several API boundaries

SOCNET uses private Backend and Friends APIs internally, offers a Search API to selected partners, and consumes a public Face Detection API. These boundaries show why teams should clarify whether “internal,” “external,” “private,” or “public” describes network location, audience, or openness. section 1.1.4

Design choices for internal APIs include:

  • Treat every new internal API as a design task rather than an implementation afterthought. section 1.3.1
  • Build internal APIs with future consumers in mind, while recognizing that a polished partner or public façade may be safer than an instant transition. section 1.3.1
Figure 1.4 The terms internal, external, private, partner, and public API may need to be disambiguated so everyone involved understands each other.
figure

Use the terminology map to distinguish internal, external, private, partner, and public API boundaries. section 1.1.4

How The Design of Web APIs, Second Edition covers it

How deep it goes
Defines scope, openness, design importance, and transition trade-offs but stops short of implementation details.
Examples
Uses SOCNET’s Backend, Friends, Search, and Face Detection APIs to contrast internal, partner, and public consumption.
What you can do after
Evaluate API boundaries and design internal APIs that can support current consumers and possible future exposure.
How it connects
Connects internal APIs with private APIs, partner APIs, public APIs, API design, REST APIs, and API façades.

Also explained in

Compare how 3 books explain internal API →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Design of Web APIs, Second Edition. The section links point to the parts of the book it draws on.