Narro docs
Loading…
A major version does not break under you. When one must change, you get notice, an overlap and a guide.
/programs/v1, or /public/standard/v1 on the public path) and in the contract name (standard.v1). Every program uses the same contract, so a version moves for every program together.410, with a link to the migration guide in the Link header.Every request body, response body and webhook body carries schema_version set to standard.v1, the same for every program. Send it on every request. Check it on what you receive. A request with a value that is unknown, or that names another contract or another major than the URL does, is refused with 400 and unsupported_schema_version. One past its sunset is 410.
| Can happen without a new major | Needs a new major |
|---|---|
| A new optional request field. | Removing or renaming a field, a route or an event. |
| A new response field. | Making an optional field required. |
| A new route or a new event type. | Narrowing what a field accepts, such as a shorter limit. |
| A new value in an enum that the contract marks as extensible. | Changing what an existing value or field means. |
Write clients that ignore fields they do not know, and that treat an unknown value in an extensible enum as unknown, not as an error. The reference marks the extensible ones.
version.deprecation_notice webhook, with the major, the deprecation date, the sunset date when it is set, and the migration guide link.410 with the deprecation headers and a link to the migration guide. The code is version_sunset in a detailed environment and the category gone in production. Successor versions are available from the start of the overlap.Deprecation: @1767225600
Sunset: Mon, 01 Jun 2026 00:00:00 GMT
Link: <https://<migration-guide-url>>; rel="deprecation"| Header | Meaning |
|---|---|
Deprecation | An RFC 9745 date, written @ and Unix seconds. Present on every response of a deprecated version. |
Sunset | An HTTP date, after which the version answers 410. |
Link | Links to the migration guide, with rel deprecation and rel sunset, and to the successor. |
The successor link follows the form you called: /programs/v2/ for a request to /programs/v1, and /public/standard/v2/ for a request on the public path. Log these headers in production. A client that alerts on the first Deprecation header gets the whole notice period to react.
/programs/v1, and the bodies say standard.v1./programs/v1/openapi.json with your partner key, and with no key at /public/standard/v1/openapi.json. The JSON Schemas links the published snapshot.Narro-Widget-SDK header, such as narro-widgets@1.0.0. See Widgets.standard.v1, the contract every program uses, is at major 1. No deprecation is announced. Narro plans a deprecation, with its notice and overlap, per major. When one is announced, you will see it in the webhook, in the headers and in the Hub.