Versioning & changelog
Dated versions you upgrade to on your own schedule, and what changed in each.
Versions are dates
The path's /api/v1 names the API's design. Inside it, the API has dated versions, like
2026-11-06, named for the day each was released. The newest is in the spec's info.version.
- A new version exists only for a breaking change: removing or renaming a field, changing a type or what something means, or making an optional request field required.
- Additive changes ship to every version, anytime: new endpoints, new optional request
fields, new response fields, new error codes, and new values of an enum marked
x-extensible-enum. - Every breaking change is in the changelog below, under the version that made it.
Which version a request gets
The first that applies:
- the
SpendRock-Versionheader, if you send it, - your personal access token's pinned version,
- otherwise (a signed-in session), the latest.
Every response says which version answered it, in its own SpendRock-Version header.
curl -s -i "$SR_API/me" -H "Authorization: Bearer $SR_TOKEN" -H "SpendRock-Version: 2026-11-06"Your token's pinned version
A token is pinned to the latest version when you create it, so a script you wrote keeps working
the same way when a new version comes out. To move it to a newer version, read what changed
below, then choose Upgrade next to the token under Account → API tokens, or call
PATCH /tokens/{tokenId} with { "api_version": "…" } from a signed-in session. You can try
a newer version first by sending its date in SpendRock-Version.
Support window
A version is served for 12 months after the next one is released. In its last 3 months its
responses carry a Deprecation header (RFC 9745) and a Sunset header (RFC 8594) with the
date it ends. After that, requests for it answer 400 version_retired, with
details.oldest_supported. A date that was never a version answers 400 unknown_version.
Pinning your tools
The spec at /api/v1/openapi.json is always the latest version. Add ?version=YYYY-MM-DD to
get a released version's spec as it was released, so an agent framework or MCP server can
regenerate its tools against the version it pins.
What that means for your client
- Ignore fields you don't recognize. Don't fail on unknown properties in responses.
- Handle unknown error codes by their HTTP status (see Errors).
- Don't depend on field order or on the exact wording of
message. - Treat cursors and IDs as opaque strings.
Changelog
Newest first: each version, and the breaking changes it made.