Versioning and change policy
Two numbers describe this API, and they answer different questions.
| Number | Value | Answers |
|---|---|---|
| Path major | /v1 | Which contract generation the URL reaches |
| Contract version | 2026.11.0 | Which 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.
| Change | Client impact |
|---|---|
| New endpoint | None |
| New optional request field | None |
| New response field | None, if the client ignores unknown keys |
New error type URI | None, if the client branches on a known set and falls back |
| New query parameter with a default | None |
What needs /v2
| Change | Why it breaks |
|---|---|
| Removing or renaming a field | A reader loses a value it already stores |
| Making an optional field required | A working request starts failing |
| Narrowing a type, such as integer to string | A parser rejects a payload it once accepted |
| Adding a value to an enum a client matches exhaustively | The client hits a branch it never wrote |
| Changing a status code for the same outcome | Retry logic fires on the wrong branch |
| Moving a path | Every 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
- Ignore unknown fields. Parse the keys you need and drop the rest.
- Branch on
type, notdetail. The error URI is a stable identifier (errors). - Handle an unknown status code. Log it, surface a generic failure, and keep running.
- 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.
Related guides
- Errors and problem details - the stable
typeURIs a client branches on. - Test requests - the three targets and the contract version each one serves.
- Interactive API reference - read the current
info.versionin the console.