Thesis: Clients and CI pin to a URI major (/v1/…). OpenAPI info.version should name that same surface. Bare public/JWT aliases (including /health) were removed in a pre-customer cutover; install and retainer integrations call the versioned path only.
What we shipped first
We published a headless API for install and retainer with OpenAPI 1.3.1 and a /v1 URI major. Dual-serving bare aliases let a green check on /health pass without proving a client hit the versioned contract — so we removed those aliases. Swagger and docs behind auth are for operators, not a substitute for the published OpenAPI document clients consume.
The working shape
Same handlers under /v1/… as the stable contract. Keep OpenAPI info.version (for example 1.3.1) honest about the URI major. HATEOAS links always include /v1. Provider webhooks stay bare forever; everything else is versioned. Examples use placeholders only (https://api.example.com/v1/health).
The snippet below pins a client at /v1/health — the only public health probe after the cutover.
// Pin clients to the URI major. OpenAPI info.version should match that surface.
const API = "https://api.example.com";
async function healthContract() {
// Install + retainer clients call and pin the versioned path only.
return fetch(`${API}/v1/health`);
}
// OpenAPI info.version example: "1.3.1" (URI major /v1 + semver patch surface)
// Bare /health was removed in the pre-customer /v1-only cutover.
Checklist
- Decide the URI major before the first external pin.
- Align OpenAPI info.version with that major.
- Document which routes are non-contract aliases.
- Smoke /v1/health (bare /health should 404).
Next in this series: give API Gateway a hostname you control. How we deliver: methodology · readiness.
Engineering commentary only — not audit, legal, or certification advice.