Skip to main content

Versioning and change policy

Two numbers describe this API, and they answer different questions.

NumberValueAnswers
Path major/v1Which contract generation the URL reaches
Contract version2026.11.0Which revision of that generation you read

The path changes only when a request or response breaks. The contract version changes on every release, and most releases are additive.

What ships without a new major​

These changes land inside v1 and reach a client that never reads the changelog.

ChangeClient impact
New endpointNone
New optional request fieldNone
New response fieldNone, if the client ignores unknown keys
New error type URINone, if the client branches on a known set and falls back
New query parameter with a defaultNone

What needs /v2​

ChangeWhy it breaks
Removing or renaming a fieldA reader loses a value it already stores
Making an optional field requiredA working request starts failing
Narrowing a type, such as integer to stringA parser rejects a payload it once accepted
Adding a value to an enum a client matches exhaustivelyThe client hits a branch it never wrote
Changing a status code for the same outcomeRetry logic fires on the wrong branch
Moving a pathEvery stored URL dies

The enum row is the one teams miss. A client that writes switch (status) over the six AnimalStatus values and throws on a seventh breaks the day the platform adds a state. Give the default branch a real behavior instead of an exception.

Four rules for a durable client​

  1. Ignore unknown fields. Parse the keys you need and drop the rest.
  2. Branch on type, not detail. The error URI is a stable identifier (errors).
  3. Handle an unknown status code. Log it, surface a generic failure, and keep running.
  4. Pin the contract version in your test suite. A diff between releases then shows up as a test failure rather than a customer report.

Rule four costs one line in a CI job. Fetch the contract, compare info.version against the pinned value, and fail the build when it moves. Someone then reads the diff on purpose.

Deprecations​

A field scheduled for removal keeps working through the announced window. The platform publishes the sunset date on the developer portal before that window opens.

This contract carries no Deprecation or Sunset response header today. Plan for the changelog rather than a header, and subscribe to release notes at https://developers.bludhavenpets.com.

Removal happens only at a major boundary. A field marked deprecated inside v1 still answers until v2 ships.

Checking the generation you reached​

The sandbox gateway reports the contract it serves.

curl https://sandbox.bludhaven-pets.workers.dev/health
{
"status": "ok",
"contract": "static/openapi/bludhaven-pets.yaml",
"operations": 24,
"secured": 19,
"live_holds": 0
}

A body that lists 24 operations describes the current generation. A short count means a stale deployment, which is the first thing to check when a documented operation returns 404.