curl -sS 'https://matrix.example.com/_synapse/admin/v1/rooms/!abc123:example.com/state' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_synapse/admin/v1/rooms/!abc123:example.com/state' -H "Authorization: Bearer $ACCESS_TOKEN"

Dump the current state of a room

Lists all state events that define the room: creation, name, join rules, power levels, and member listings. Append ?type=m.room.join_rules to filter to one event type. This works even when you are not a member, unlike the client state endpoint. Great for diagnosing why a room behaves unexpectedly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.