# Matrix Specification Changes since last release


## Client-Server API

**Breaking Changes**

- [ ] Clients are now supposed to follow 30x redirects from `/.well-known/matrix/client` as per [MSC4402](https://github.com/matrix-org/matrix-spec-proposals/pull/4402). ([#2404](https://github.com/matrix-org/matrix-spec/issues/2404))
- [ ] Providing access tokens via query string parameters is no longer supported. ([#2408](https://github.com/matrix-org/matrix-spec/issues/2408))

**New Endpoints**

- [ ] Add `POST /_matrix/client/v1/delayed_events/{delayId}/cancel` as per [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140). ([#2462](https://github.com/matrix-org/matrix-spec/issues/2462))
- [ ] Add `GET /_matrix/client/v1/delayed_events/{delayId}` as per [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140). ([#2462](https://github.com/matrix-org/matrix-spec/issues/2462))
- [ ] Add `PUT /_matrix/client/v3/rooms/{roomId}/delayed_event/{eventType}/{txnId}` as per [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140). ([#2462](https://github.com/matrix-org/matrix-spec/issues/2462))
- [ ] Add `POST /_matrix/client/v1/delayed_events/{delayId}/send` as per [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140). ([#2462](https://github.com/matrix-org/matrix-spec/issues/2462))
- [ ] Add `POST /_matrix/client/v1/delayed_events/{delayId}/restart` as per [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140). ([#2462](https://github.com/matrix-org/matrix-spec/issues/2462))
- [ ] Add `GET /_matrix/client/v1/rtc/transports` as per [MSC4143](https://github.com/matrix-org/matrix-spec-proposals/pull/4143). ([#2480](https://github.com/matrix-org/matrix-spec/issues/2480))

**Backwards Compatible Changes**

- [ ] Introduce room type `m.policy` to indicate rooms likely to contain policy lists, as per [MSC3784](https://github.com/matrix-org/matrix-spec-proposals/pull/3784). ([#2411](https://github.com/matrix-org/matrix-spec/issues/2411))
- [ ] Specify `unsigned.prev_sender` in client-formatted events. Contributed by @timedoutuk. ([#2427](https://github.com/matrix-org/matrix-spec/issues/2427))
- [ ] Introduce module "Media preview configuration", as per [MSC4278](https://github.com/matrix-org/matrix-spec-proposals/pull/4278). ([#2440](https://github.com/matrix-org/matrix-spec/issues/2440))
- [ ] Add the `m.preview_url` capability to indicate whether URL previews are available, as per [MSC4452](https://github.com/matrix-org/matrix-spec-proposals/pull/4452). ([#2451](https://github.com/matrix-org/matrix-spec/issues/2451))
- [ ] Add the `m.delayed_events` capability as per [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140). ([#2462](https://github.com/matrix-org/matrix-spec/issues/2462))
- [ ] Add "Sticky Events", as per [MSC4354](https://github.com/matrix-org/matrix-spec-proposals/pull/4354), including the `sticky_duration_ms` query parameter in `PUT /rooms/{roomId}/send/{eventType}/{txnId}`, the `sticky_duration_ms` body property in `PUT /rooms/{roomId}/delayed_event/{eventType}/{txnId}`, the `sticky` section for joined rooms in `/sync` responses and the `unsigned.sticky_duration_remaining_ms` property on message events. ([#2475](https://github.com/matrix-org/matrix-spec/issues/2475))
- [ ] Add "MatrixRTC" including the `m.rtc.slot` state event, the `m.rtc.member` message event and the `m.rtc.encryption_key` to-device message, as per [MSC4143](https://github.com/matrix-org/matrix-spec-proposals/pull/4143). ([#2480](https://github.com/matrix-org/matrix-spec/issues/2480))

**Spec Clarifications**

- [ ] Correct some errors in the description of the validation process for incoming Olm-encrypted messages. ([#2394](https://github.com/matrix-org/matrix-spec/issues/2394))
- [ ] Add further normative language in mutual rooms server behaviour. ([#2407](https://github.com/matrix-org/matrix-spec/issues/2407))
- [ ] Clarify history key sharing requirements. Contributed by @HarHarLinks and Matrix Stammtisch Aachen. ([#2410](https://github.com/matrix-org/matrix-spec/issues/2410))
- [ ] Use the User ID type in OlmPayload and DeviceKeys. ([#2412](https://github.com/matrix-org/matrix-spec/issues/2412))
- [ ] Improve the format description of `m.room.encrypted` (Olm/Megolm) events. ([#2413](https://github.com/matrix-org/matrix-spec/issues/2413))
- [ ] Wording improvements and spelling fixes. Contributed by @HarHarLinks. ([#2417](https://github.com/matrix-org/matrix-spec/issues/2417))
- [ ] Rename OlmPayload to OlmPlaintext to avoid confusion with Olm message Payload Bytes. ([#2418](https://github.com/matrix-org/matrix-spec/issues/2418))
- [ ] Use MXC URI type for all user `avatar_url` fields. Contributed by @networkException. ([#2422](https://github.com/matrix-org/matrix-spec/issues/2422))
- [ ] Add cross-references between the OpenID endpoints of the Client-Server API, Server-Server API and Identity-Service API. ([#2426](https://github.com/matrix-org/matrix-spec/issues/2426))
- [ ] Disambiguate parts of the UIA specification. ([#2428](https://github.com/matrix-org/matrix-spec/issues/2428))
- [ ] Restore the legacy singular anchor for the well-known URI section. ([#2429](https://github.com/matrix-org/matrix-spec/issues/2429), [#2433](https://github.com/matrix-org/matrix-spec/issues/2433))
- [ ] Link to the relevant OAuth 2.0 RFCs for the structure of error responses on the OAuth 2.0 API endpoints. ([#2432](https://github.com/matrix-org/matrix-spec/issues/2432))
- [ ] Update community-provided translations for SAS Emojis. ([#2438](https://github.com/matrix-org/matrix-spec/issues/2438))
- [ ] Fix various typos throughout the specification. ([#2454](https://github.com/matrix-org/matrix-spec/issues/2454))
- [ ] Fix the security scheme of `GET /_matrix/client/v1/room_summary/{roomIdOrAlias}` to reflect that authentication is an optional access token, not a federation signed request. ([#2455](https://github.com/matrix-org/matrix-spec/issues/2455))
- [ ] Remove `method` from the required properties and example of `m.key.verification.accept`, as it is not part of the event. ([#2457](https://github.com/matrix-org/matrix-spec/issues/2457))
- [ ] Fix the Policy Server public key examples to use standard unpadded base64 rather than URL-safe base64. ([#2459](https://github.com/matrix-org/matrix-spec/issues/2459))
- [ ] Fix relative links in OpenAPI descriptions. ([#2466](https://github.com/matrix-org/matrix-spec/issues/2466))
- [ ] Clarify that `data-mx-emoticon` is a permitted attribute on `img` tags in HTML message bodies. ([#2467](https://github.com/matrix-org/matrix-spec/issues/2467))
- [ ] Clarify where `/relations` starts when `from` is omitted with `dir=f`. ([#2469](https://github.com/matrix-org/matrix-spec/issues/2469))
- [ ] Consistently apply distinctive wording for 'custom emoticons'. Contributed by @HarHarLinks. ([#2472](https://github.com/matrix-org/matrix-spec/issues/2472))


## Server-Server API

**Backwards Compatible Changes**

- [ ] Add proactive pushing of sticky events over federation as per [MSC4354](https://github.com/matrix-org/matrix-spec-proposals/pull/4354). ([#2475](https://github.com/matrix-org/matrix-spec/issues/2475))

**Spec Clarifications**

- [ ] Add cross-references between the OpenID endpoints of the Client-Server API, Server-Server API and Identity-Service API. ([#2426](https://github.com/matrix-org/matrix-spec/issues/2426))
- [ ] Fix the name of the `sig` parameter in the `X-Matrix` `Authorization` header. ([#2450](https://github.com/matrix-org/matrix-spec/issues/2450))
- [ ] Fix verb for /3pid/onbind endpoint (PUT -> POST) ([#2452](https://github.com/matrix-org/matrix-spec/issues/2452))


## Application Service API

**Spec Clarifications**

- [ ] Fix various typos throughout the specification. ([#2435](https://github.com/matrix-org/matrix-spec/issues/2435))


## Identity Service API

**Breaking Changes**

- [ ] Providing access tokens via query string parameters is no longer supported. ([#2408](https://github.com/matrix-org/matrix-spec/issues/2408))

**Spec Clarifications**

- [ ] Add cross-references between the OpenID endpoints of the Client-Server API, Server-Server API and Identity-Service API. ([#2426](https://github.com/matrix-org/matrix-spec/issues/2426))


## Push Gateway API

No significant changes.


## Room Versions

**Backwards Compatible Changes**

- [ ] Add the `sticky` property to the federation event format of all room versions, as per [MSC4354](https://github.com/matrix-org/matrix-spec-proposals/pull/4354). ([#2475](https://github.com/matrix-org/matrix-spec/issues/2475))

**Spec Clarifications**

- [ ] Explicitly define that PDU depth cannot be negative. Contributed by @timedoutuk. ([#2448](https://github.com/matrix-org/matrix-spec/issues/2448))


## Olm & Megolm

**Spec Clarifications**

- [ ] Fix typesetting of some symbols in the Olm/Megolm spec. ([#2421](https://github.com/matrix-org/matrix-spec/issues/2421))


## Appendices

**Spec Clarifications**

- [ ] Clarify that clients must avoid producing ambiguous matrix.to URIs. Contributed by @HarHarLinks. ([#2396](https://github.com/matrix-org/matrix-spec/issues/2396))
- [ ] Fix various typos throughout the specification. ([#2454](https://github.com/matrix-org/matrix-spec/issues/2454))


## Internal Changes/Tooling

**Spec Clarifications**

- [ ] Fix incorrect unstable prefix example for error codes. ([#2446](https://github.com/matrix-org/matrix-spec/issues/2446))
- [ ] Verify that Markdown links in OpenAPI definitions are absolute in CI. ([#2466](https://github.com/matrix-org/matrix-spec/issues/2466))
- [ ] Use a GitHub token if available when fetching proposals and retain the error body if fetching fails. ([#2468](https://github.com/matrix-org/matrix-spec/issues/2468))
- [ ] Tolerate changelog entries with numeric suffixes. ([#2470](https://github.com/matrix-org/matrix-spec/issues/2470))

