Video in progress

What governance do you put in place for internal APIs at the organization level so that it doesn't slow teams down?

Not a manual approval committee but automated rules: OpenAPI/Proto files in the repo, linting and breaking-change checks in CI, a single API catalog and a clear deprecation policy. Human review only for new public APIs.

📖 Answer

In many companies an "API review board" becomes a place where things get stuck: a team waits two weeks for approval and ends up learning to bypass the rules. I hand governance to machines as much as possible.

The contract lives with the code. Every service repo has an openapi.yaml or a .proto. Even if it's code-first (springdoc), the spec is generated at build time and committed, so the diff shows up in the PR.

Linting. Shared rules through Spectral (OpenAPI) or buf lint (Protobuf): naming (kebab-case paths, camelCase fields), the error format (RFC 9457 Problem Details), the pagination shape, a mandatory operationId and description. The rule set belongs to the platform team, but any team can propose a change by PR.

A breaking change detector. oasdiff or buf breaking compares against the spec on the main branch. If it's breaking, the build is red, and it passes only with a version bump or a special label.

# CI step
- run: oasdiff breaking main/openapi.yaml openapi.yaml --fail-on ERR

A catalog. Backstage or a similar portal: every API, its owner, its versions, and who calls it (automatically from traces and gateway logs). If there's no answer to "who uses this endpoint", the deprecation policy stays on paper.

A deprecation policy. For example: an old version of an internal API is supported for at least 3 months, the Deprecation and Sunset headers are returned, and tickets are opened automatically for the consumer teams.

Where human review stays: external (partner, public) APIs and new domain models. There the cost of a mistake is high and changes are hard. Requiring review for internal endpoints used by a single team is a waste of time.