/v1/, and there is no version header or query parameter to set.
What can change inside a version
Changes inside/v1/ are additive:
- new endpoints
- new optional request fields
- new fields in a response body
- the meaning or type of an existing field
- an existing field becoming required, or disappearing
- an error
codestring for a given failure - the path of an existing endpoint
/v2/). Existing paths are not repurposed.
How a deprecation is announced
A deprecated endpoint says so in its own responses, so a client learns about it from a call rather than from a changelog nobody reads:
There is a minimum of six months between the
Deprecation date and the Sunset date on any generally available endpoint.
Checking programmatically
The OpenAPI specification is the authoritative list of what exists in the current version. Log theDeprecation and Sunset headers alongside your other request metadata — that way an endpoint you depend on cannot be retired without it showing up in your own logs first.