media
Media thumbnail
Changed onServes a media thumbnail. Tries the unauthenticated client-server media API first (faster), then falls back to the authenticated federation media API. Streams the image on a hit, or 204 when there is nothing to serve. Standard Matrix thumbnail query params (width, height, method) are passed straight through.
get/avatar/{name}/{id}
Request
- The document declares no server URL.
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
namestring required
Media origin server name
idstring required
Media ID
Query parameters
widthinteger
Thumbnail width
heightinteger
Thumbnail height
methodstring
Resize method: crop or scale
Response
Thumbnail image
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking