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

Category: Matrix & Synapse

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

Inspect a single media item

Shows metadata for one media file: origin server, uploader, size, MIME type, creation time, and SHA-256 hash. The server name and media ID come from the mxc:// URI, for example mxc://example.com/abcde12345 splits into example.com and abcde12345. Uncached remote media returns 404. Use it before quarantining or deleting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.