API versions

GET
/versions

Every major version of this API with its status (current, deprecated, retired), release and retirement dates, path prefix and the OpenAPI document that describes it (spec, a path on this origin). The major version is in the path: pick one, and everything that ships inside it stays backward compatible. A deprecated version answers every request with Deprecation and Sunset headers; a retired one answers 410 version_retired. policy states the support window. No key needed; cache it.

Response Body

application/json

curl -X GET "https://example.com/versions"
{  "current": "v1",  "versions": [    {      "id": "v1",      "status": "current",      "released": "2026-09-18",      "deprecatedAt": "string",      "sunsetAt": "string",      "basePath": "/v1",      "spec": "/v1/openapi.json",      "specVersion": "1.3.0",      "docs": "string",      "changelog": "string"    }  ],  "policy": {    "scheme": "path",    "minimumSupportMonthsAfterSuccessor": 0,    "docs": "string"  }}