Skip to navigation

API changes and versioning

Which changes need notice, where Rasen announces them, and how to read the version you call.

Summary

This page explains which changes need notice and how Rasen announces them. It also shows where to read the API version. It does not list the changes; see the Changelog and Deprecations.

Facts

ItemValue
Version in the path/v1 in the base URL, before every path
getContextapi_version is the path version: v1
Webhook envelopeapi_version names the public API version whose schemas built data, fixed at fan-out
Version headerNone. No response header carries the API version
ChangelogChangelog: one entry for each date, newest first. Each section about a new API version names it
DeprecationsDeprecations: each deprecated or removed operation, field or value, with its shutdown date and replacement
Deprecated in the contractThe operation has deprecated: true in the OpenAPI contract, and the API reference labels it
Shutdown dateNone announced, or a date at least 90 days after the date of its Deprecations entry
Shorter noticeOnly in an entry with an **Urgency:** line (security or urgent) and a **Reason:** line

Changes your integration must accept

These changes need no deprecation and no notice. An open vocabulary can gain a value without a Changelog entry.

ChangeWhat your integration does
A new operationNothing. Use it when you need it.
A new field in a responseIgnore a field you do not know. Response schemas allow more properties (additionalProperties: true).
A new value in an open vocabulary, for example a new state, end_reason or dial_outcomeKeep the value, and treat it as unknown, never as an error or as success.
A new optional field in a requestNothing. Leave it out until you need it.
A new error code, or a new details.reasonTreat it as unknown, and follow its retry class.

Changes that need notice

A change that can break a working request is a breaking change. It has an entry on Deprecations, with a shutdown date and a replacement:

  • The removal of an operation, a field or a value.
  • A change to the request or response shape of an existing operation.

A deprecated operation or field keeps working, with its request and response shapes, until its shutdown date. A removal comes on its shutdown date or later, never earlier.

Where Rasen announces a change

WhereWhat it says
ChangelogEach change, the operations and paths it touches, and a What to do: line. Tags name its type: Feature, Update, Fix, Deprecation, Removal or Breaking.
DeprecationsAn entry dated on the day of the announcement, with a table of the shutdown date, the deprecated or removed item, and its replacement.
API referenceThe deprecated label on each deprecated operation.

Rasen announces a change to the meaning of a value, for example a more precise end_reason, in the Changelog with a What to do: line.

Read the version you call

  • getContext (GET /context) returns api_version. It is the version in the path, v1.
  • Each webhook event carries api_version: the version of the schemas that built its data.
  • The Changelog names each API version and the changes it brought.
  • No response header carries the API version.

Rules

  • MUST accept a new response field, a new operation and a new value of an open vocabulary.
  • MUST keep an unknown value, and never read it as success.
  • MUST NOT build a new integration on an operation or field that Deprecations lists.
  • MUST move off a deprecated item before its shutdown date.
  • MUST compare the operation IDs that your integration calls with the Deprecated column of each Deprecations entry.