mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-10-31 08:11:24 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			501 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			501 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # List all media in a room
 | |
| 
 | |
| This API gets a list of known media in a room.
 | |
| 
 | |
| The API is:
 | |
| ```
 | |
| GET /_matrix/client/r0/admin/room/<room_id>/media
 | |
| ```
 | |
| 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"
 | |
|     ]
 | |
| }
 | |
| ```
 |