2018-01-31 16:15:59 +01:00
|
|
|
# List all media in a room
|
|
|
|
|
|
|
|
This API gets a list of known media in a room.
|
|
|
|
|
|
|
|
The API is:
|
|
|
|
```
|
2019-05-01 16:18:58 +02:00
|
|
|
GET /_synapse/admin/v1/room/<room_id>/media
|
2018-01-31 16:15:59 +01:00
|
|
|
```
|
|
|
|
including an `access_token` of a server admin.
|
|
|
|
|
|
|
|
It returns a JSON body like the following:
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"local": [
|
|
|
|
"mxc://localhost/xwvutsrqponmlkjihgfedcba",
|
|
|
|
"mxc://localhost/abcdefghijklmnopqrstuvwx"
|
|
|
|
],
|
|
|
|
"remote": [
|
|
|
|
"mxc://matrix.org/xwvutsrqponmlkjihgfedcba",
|
|
|
|
"mxc://matrix.org/abcdefghijklmnopqrstuvwx"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|