REST API Versioning and Deprecation
How the New Zealand interest rates API versions REST endpoints and announces deprecations, migrations, and retirement dates.
Support this projectThe major version is part of the REST URL. The current version is /api/v1/. A change that removes or renames an existing field, changes its meaning, or removes an endpoint requires a new major version. Clients should accept new optional fields within a major version.
When a planned retirement is announced, this page will list the affected version or endpoint, the replacement, and the schedule. Affected responses will include Deprecation as a Structured Fields date, written as @ followed by Unix seconds, as defined by RFC 9745. Once a withdrawal date is set, the responses will also include Sunset as an HTTP date in GMT, as defined by RFC 8594.
REST responses link to this page using the deprecation link relation. The link is available before a retirement is announced.
Current status
Version 1 is active. There are no announced REST deprecations or sunset dates.
Last updated on
Core Concepts
How Rates API collects New Zealand rates on a four-hour schedule, and how snapshots, lender IDs, date filters, freshness, and errors operate.
Open Source
How the open source New Zealand rates API is built: Cloudflare Workers, D1, Elysia, scheduled scrapers, and the repository layout. MIT licensed.