Appearance
API versioning and deprecation policy
This document defines how the IDVIZE API is versioned, how breaking changes are introduced, and what deprecation means for consumers.
Version scheme
The API uses URI-path versioning: /v1/applications, /v1/controls, etc.
Every response carries an X-API-Version header naming the version that served it. The OpenAPI specification at /openapi.yaml (and /openapi.json) lists the versioned server as the primary entry point.
Current versions
| Version | Status | Base path | Sunset |
|---|---|---|---|
| v1 | Current | /v1 | n/a |
| (root) | Deprecated | / | 2027-06-01 |
What counts as a breaking change
A change is breaking if it can cause a previously working client to fail or silently misinterpret a response. Specifically:
- Removing or renaming an endpoint.
- Removing or renaming a response field that was previously documented.
- Changing the type of a documented field (e.g. string to number).
- Changing the meaning of a status code for an existing operation.
- Adding a new required request field to an existing operation.
- Tightening validation on a field that was previously accepted.
The following are not breaking and happen within the current version:
- Adding a new endpoint.
- Adding a new optional request field with a safe default.
- Adding a new response field.
- Loosening validation (accepting values that were previously rejected).
- Adding a new enum value to a response field (clients should tolerate unknown values).
- Bug fixes where the documented behaviour and implementation disagreed, and the fix aligns to the documentation.
Deprecation process
When a breaking change is needed:
New version published. A new version path (
/v2, etc.) is mounted alongside the current version. Both serve simultaneously.Deprecation headers added. Responses on the old version carry three headers per RFC 8594:
Deprecation: true Sunset: <date> Link: </v2/...>; rel="successor-version"The
Sunsetdate is at least 6 months from the deprecation announcement.Announcement. The deprecation is recorded in the API changelog, in the OpenAPI spec's
deprecatedflag on affected operations, and in the release notes.Migration period. During the migration period both versions work identically except for the shape changes that motivated the new version. No new features are added to the deprecated version.
Sunset. After the sunset date, the old version returns
410 Gonefor all operations. Responses include aLinkheader pointing to the successor.
The root-path deprecation
All 288 API operations are available at both /v1/... and /... (root path). The root-path mount exists solely for backward compatibility with clients written before versioning was introduced.
Root-path responses carry:
Deprecation: true
Sunset: 2027-06-01
Link: </v1/{path}>; rel="successor-version"Action required: migrate all client base URLs from http://host:port to http://host:port/v1 before 1 June 2027. The request and response shapes are identical; only the URL prefix changes.
Infrastructure endpoints (/health, /docs, /openapi.yaml, /openapi.json) are not versioned and carry no deprecation headers.
Stability guarantees
- v1 is stable. Fields and endpoints documented in the OpenAPI spec will not be removed or have their types changed without a version bump.
- Undocumented fields may appear and disappear. If a field is not in the OpenAPI spec, it is internal and carries no stability promise.
- Error response bodies follow the shape
{ "error": "<message>" }with an appropriate HTTP status code. Theerrorstring is human-readable and may change; clients should branch on the HTTP status code, not the message text.
Rate limiting
Not enforced in the current release. When introduced, rate limits will use standard 429 Too Many Requests responses with Retry-After headers and will be documented here and in the OpenAPI spec before enforcement begins.
Authentication
Every API call requires one of:
- API key via the
X-Api-Keyheader (development and service-to-service). - Bearer token via the
Authorization: Bearer <jwt>header (user sessions).
Unauthenticated requests receive 401 Unauthorized. Requests lacking the required permission receive 403 Forbidden naming the missing permission.
Interactive documentation
Swagger UI is served at /docs and is publicly browsable (no authentication required). The raw specification is available at /openapi.yaml and /openapi.json.