> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rasen.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rasen.ai/_mcp/server.

# API changes and versioning

> Know which API changes your integration must accept, how Rasen announces deprecations and shutdown dates, and where to read the API version.

## 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](/changelog) and
[Deprecations](/deprecations).

## Facts

| Item                       | Value                                                                                                                       |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Version in the path        | `/v1` in the base URL, before every path                                                                                    |
| `getContext`               | `api_version` is the path version: `v1`                                                                                     |
| Webhook envelope           | `api_version` names the public API version whose schemas built `data`, fixed at fan-out                                     |
| Version header             | None. No response header carries the API version                                                                            |
| Changelog                  | [Changelog](/changelog): one entry for each date, newest first. Each section about a new API version names it               |
| Deprecations               | [Deprecations](/deprecations): each deprecated or removed operation, field or value, with its shutdown date and replacement |
| Deprecated in the contract | The operation has `deprecated: true` in the OpenAPI contract, and the [API reference](/api-reference) labels it             |
| Shutdown date              | `None announced`, or a date at least 90 days after the date of its Deprecations entry                                       |
| Shorter notice             | Only 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.

| Change                                                                                       | What your integration does                                                                             |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| A new operation                                                                              | Nothing. Use it when you need it.                                                                      |
| A new field in a response                                                                    | Ignore 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_outcome` | Keep the value, and treat it as unknown, never as an error or as success.                              |
| A new optional field in a request                                                            | Nothing. Leave it out until you need it.                                                               |
| A new error code, or a new `details.reason`                                                  | Treat 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](/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

| Where                           | What it says                                                                                                                                                          |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Changelog](/changelog)         | Each change, the operations and paths it touches, and a **What to do:** line. Tags name its type: `Feature`, `Update`, `Fix`, `Deprecation`, `Removal` or `Breaking`. |
| [Deprecations](/deprecations)   | An entry dated on the day of the announcement, with a table of the shutdown date, the deprecated or removed item, and its replacement.                                |
| [API reference](/api-reference) | The 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.

## Related

* [Changelog](/changelog)
* [Deprecations](/deprecations)
* [Errors](/concepts/errors)
* [API reference](/api-reference)