Mutual Rooms
Get the list of rooms that the user shares with another user.
Get the list of rooms that the user shares with another user. The server will return a list of room IDs that the user shares with the specified user_id.
get/_matrix/client/v1/mutual_rooms
Request
- Base URLhttps://matrix.org
- Auth
- API key in query parameter access_token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
user_idstring mx-user-id required
The MXID of the user to check for mutual rooms with.
fromstring
A pagination token from a previous result. This should be a next_batch result from a previous call to this endpoint. If not provided, the server will return the first batch of results.
Response
A list of room IDs that the user shares with the specified user. If the provided user_id is not a valid user, the server MUST return an empty list of rooms.
Example response
{
"count": 1,
"joined": [
"!OGEhHVWSdvArJzumhm:matrix.org"
],
"next_batch": "next_batch_token"
}Changes
No recorded changes to this operation across all 1 revision of this API.