curl -sS 'https://matrix.example.com/_matrix/client/v3/rooms/!abc123:example.com/state' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_matrix/client/v3/rooms/!abc123:example.com/state' -H "Authorization: Bearer $ACCESS_TOKEN"

Fetch the state events of a room

Returns the events that define the room: name, topic, join rules, power levels, and member states. Filter by type with a query parameter to isolate one kind. Requires membership, unlike the admin state endpoint. Check this to understand why a room behaves a certain way before moderating it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.