Session management

Invalidates all access tokens for a user

Invalidates all access tokens for a user, so that they can no longer be used for authorisation. This includes the access token that made this request. All devices for the user are also deleted. Device keys for the device are deleted alongside the device.

This endpoint does not use the User-Interactive Authentication API because User-Interactive Authentication is designed to protect against attacks where someone gets hold of a single access token then takes over the account. This endpoint invalidates all access tokens for the user, including the token used in the request, and therefore the attacker is unable to take over the account in this way.

post/_matrix/client/v3/logout/all

Request

Response

The user's access tokens were successfully invalidated.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.