Join the requesting user to a particular room.
Note that this API takes either a room ID or alias, unlike /rooms/{roomId}/join.
This API starts a user's participation in a particular room, if that user is allowed to participate in that room. After this call, the client is allowed to see all current state events in the room, and all subsequent events associated with the room until the user leaves the room.
After a user has joined a room, the room will appear as an entry in the response of the /initialSync and /sync APIs.
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.
Path parameters
The room identifier or alias to join.
Query parameters
The servers to attempt to join the room through. One of the servers must be participating in the room.
Request body
Example request
{
"reason": "Looking for support",
"third_party_signed": {
"mxid": "@bob:example.org",
"sender": "@alice:example.org",
"signatures": {
"example.org": {
"ed25519:0": "some9signature"
}
},
"token": "random8nonce"
}
}Response
The room has been joined.
The joined room ID must be returned in the room_id field.
Changes
No recorded changes to this operation across all 1 revision of this API.