Skip to content

ecentic API versioning.

The version is in the path. An integration that pins a version keeps the contract it was written against, and never loses it without warning.

URL-path versioning · 180 days notice · Deprecation and Sunset headers

01

How versions work

One number, in the path, changed only for a break.

Pinned request and response version

The current version is v1, served at /api/v1. Every response also echoes the version in an API-Version header, so a client that follows a redirect or a link can confirm what it is actually talking to.

Add to the same version

Additive changes ship inside a version: new endpoints, new optional request fields, new fields on an existing response. Treat unknown response fields as forward compatibility, not as an error.

Start a new version path

A change that removes a field, renames one, narrows a type, or changes the meaning of an existing value is a breaking change and ships as a new version path beside the old one — never in place.

02

Deprecation and sunset

Two standard headers, and a window long enough to act on them.

Select a header to see what it tells your client.

Deprecation announced

A version is deprecated

Every response from a deprecated version carries this header. It announces the deprecation using RFC 9745.

Deprecation header format

Illustrative header values, not a retirement announcement.

03

What is not versioned

Discovery documents track their own protocol's version instead.

The .well-known discovery documents are versioned by the protocol they implement, not by the ecentic API version — the UCP profile carries a UCP version, the MCP server card carries a protocol version, and so on. Reading the version from inside the document is always correct; inferring it from the ecentic API version is not.

ecentic API contract
/api/v1
API-Version: 1
Discovery protocol contract
.well-known
Read the version inside the document