liveBook · Manning

Internal API

Also called private api

An internal API is a non-public programming interface intended for use by components or users within a software system or its owning organization.

How 3 Manning books explain it

Unit Testing Principles, Practices, and Patterns

The non-public operations and contracts through which internal implementation details are accessed within a software component.

How it is used
Defines which operations and state clients may rely on while keeping implementation details hidden.
How deep it goes
Explains classification, leakage, encapsulation, and a User refactoring, but stops short of exhaustive API design guidance.
Examples
Uses User.NormalizeName and MessageRenderer.SubRenderers to show leaking operations and state, then hides them behind observable behavior.
What you can do after
Evaluate API boundaries and refactor exposed implementation details behind operations or state that represent observable behavior.

Read how Unit Testing Principles, Practices, and Patterns explains internal API →

Secure APIs

An internal API is an API intended for use within an organization or its private infrastructure rather than for public access.

How it is used
Frames private APIs as sensitive operational services that require public-API security rather than network-location trust.
How deep it goes
Explains uses, failure modes, incidents, and layered network controls, but stops short of implementation code.
Examples
Uses back-office operations, a customer-identity API, public exposure mistakes, and bastion-server network diagrams as concrete examples.
What you can do after
Operate and configure internal APIs with authentication, authorization, private subnets, bastion access, and controlled gateway exposure.

Read how Secure APIs explains internal API →

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.

How it is used
Connects an organization’s applications and teams through an interface consumed by people beyond its original designers.
How deep it goes
Defines consumers and exposure, then discusses design trade-offs without specifying an internal endpoint or implementation.
Examples
Contrasts SOCNET’s Backend and Friends APIs with a partner Search API and a public Face Detection API.
What you can do after
Practice/perform internal API design around consumer needs while anticipating changes that could affect existing consumers or future external APIs.

Read how The Design of Web APIs, Second Edition explains internal API →

Also covered in

What to know first

Related concepts

Questions about internal API

What is internal API?

An internal API is a non-public programming interface intended for use by components or users within a software system or its owning organization.

Which Manning books explain internal API?

Unit Testing Principles, Practices, and Patterns, Secure APIs and The Design of Web APIs, Second Edition.

What should I know before learning internal API?

Manning books that teach internal API usually introduce user interface, API gateway and OAuth first.

What is the difference between internal API and api?

An internal API is a non-public programming interface intended for use by components or users within a software system or its owning organization. An application programming interface is a defined set of operations and conventions through which software components communicate, access data, or invoke functionality.

What is internal API a kind of?

Internal API is a kind of contract. A contract is an agreement or specification defining conditions, obligations, or behavioral expectations that govern interactions between parties or software components.

What is internal API also called?

Internal API is also called private api.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.