@@ -38,38 +38,43 @@ rather than allowing all homeservers to enforce the rules on each other.
3838The following API endpoints are allowed to be accessed by guest accounts
3939for retrieving events:
4040
41- - [ GET /rooms/: room \_ id /state] ( #get_matrixclientv3roomsroomidstate )
42- - [ GET /rooms/: room \_ id /context/: event \_ id ] ( #get_matrixclientv3roomsroomidcontexteventid )
43- - [ GET /rooms/: room \_ id /event/: event \_ id ] ( #get_matrixclientv3roomsroomideventeventid )
44- - [ GET /rooms/: room \_ id /state/: event \_ type/ : state \_ key ] ( #get_matrixclientv3roomsroomidstateeventtypestatekey )
45- - [ GET /rooms/: room \_ id /messages] ( #get_matrixclientv3roomsroomidmessages )
46- - {{% added-in v="1.1" % }} [ GET /rooms/: room \_ id /members] ( #get_matrixclientv3roomsroomidmembers )
47- - [ GET /rooms/: room \_ id /initialSync] ( #get_matrixclientv3roomsroomidinitialsync )
48- - [ GET /sync] ( #get_matrixclientv3sync )
49- - [ GET /events] ( #get_matrixclientv3events ) as used for room previews.
41+ * [ GET /rooms/{roomId} /state] ( #get_matrixclientv3roomsroomidstate )
42+ * [ GET /rooms/{roomId} /context/{eventId} ] ( #get_matrixclientv3roomsroomidcontexteventid )
43+ * [ GET /rooms/{roomId} /event/{eventId} ] ( #get_matrixclientv3roomsroomideventeventid )
44+ * [ GET /rooms/{roomId} /state/{eventType}/{stateKey} ] ( #get_matrixclientv3roomsroomidstateeventtypestatekey )
45+ * [ GET /rooms/{roomId} /messages] ( #get_matrixclientv3roomsroomidmessages )
46+ * {{< added-in v="1.1" > }} [ GET /rooms/{roomId} /members] ( #get_matrixclientv3roomsroomidmembers )
47+ * [ GET /rooms/{roomId} /initialSync] ( #get_matrixclientv3roomsroomidinitialsync )
48+ * [ GET /sync] ( #get_matrixclientv3sync )
49+ * [ GET /events] ( #get_matrixclientv3events ) as used for room previews.
5050
5151The following API endpoints are allowed to be accessed by guest accounts
5252for sending events:
5353
54- - [ POST /rooms/: room \_ id/join] ( #post_matrixclientv3roomsroomidjoin )
55- - [ POST /rooms/: room \_ id/leave] ( #post_matrixclientv3roomsroomidleave )
56- - [ PUT /rooms/: room \_ id/send/m.room.message/: txn \_ id] ( #put_matrixclientv3roomsroomidsendeventtypetxnid )
57- - [ PUT /sendToDevice/{eventType}/{txnId}] ( #put_matrixclientv3sendtodeviceeventtypetxnid )
54+ * [ POST /rooms/{roomId}/join] ( #post_matrixclientv3roomsroomidjoin )
55+ * [ POST /rooms/{roomId}/leave] ( #post_matrixclientv3roomsroomidleave )
56+ * [ PUT /rooms/{roomId}/send/{eventType}/{txnId}] ( #put_matrixclientv3roomsroomidsendeventtypetxnid )
57+
58+ * {{< changed-in v="1.2" >}} Guests can now send * any* event type rather than just ` m.room.message ` events.
59+
60+ * {{< added-in v="1.2" >}} [ PUT /rooms/{roomId}/state/{eventType}/{stateKey}] ( #put_matrixclientv3roomsroomidstateeventtypestatekey )
61+ * [ PUT /sendToDevice/{eventType}/{txnId}] ( #put_matrixclientv3sendtodeviceeventtypetxnid )
5862
5963The following API endpoints are allowed to be accessed by guest accounts
6064for their own account maintenance:
6165
62- - [ PUT /profile/: user \_ id/displayname] ( #put_matrixclientv3profileuseriddisplayname )
63- - [ GET /devices] ( #get_matrixclientv3devices )
64- - [ GET /devices/{deviceId}] ( #get_matrixclientv3devicesdeviceid )
65- - [ PUT /devices/{deviceId}] ( #put_matrixclientv3devicesdeviceid )
66+ * [ PUT /profile/{userId}/displayname] ( #put_matrixclientv3profileuseriddisplayname )
67+ * [ GET /devices] ( #get_matrixclientv3devices )
68+ * [ GET /devices/{deviceId}] ( #get_matrixclientv3devicesdeviceid )
69+ * [ PUT /devices/{deviceId}] ( #put_matrixclientv3devicesdeviceid )
70+ * {{< added-in v="1.2" >}} [ GET /account/whoami] ( #get_matrixclientv3accountwhoami )
6671
6772The following API endpoints are allowed to be accessed by guest accounts
6873for end-to-end encryption:
6974
70- - [ POST /keys/upload] ( #post_matrixclientv3keysupload )
71- - [ POST /keys/query] ( #post_matrixclientv3keysquery )
72- - [ POST /keys/claim] ( #post_matrixclientv3keysclaim )
75+ * [ POST /keys/upload] ( #post_matrixclientv3keysupload )
76+ * [ POST /keys/query] ( #post_matrixclientv3keysquery )
77+ * [ POST /keys/claim] ( #post_matrixclientv3keysclaim )
7378
7479#### Server behaviour
7580
@@ -88,3 +93,6 @@ properly enforce the permissions outlined in this section.
8893
8994Homeservers may want to enable protections such as captchas for guest
9095registration to prevent spam, denial of service, and similar attacks.
96+
97+ Homeservers may want to put stricter rate limits on guest accounts,
98+ particularly for sending state events.
0 commit comments