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

Category: Matrix & Synapse

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

List media in a room

Returns the mxc:// URIs of media referenced in the room, split into local and remote. An mxc URI is Matrix's media address format, like mxc://example.com/abcde12345. Only media from unencrypted rooms or events is visible, because encrypted content hides its references. Follow up with quarantine or delete endpoints per item.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.