v1

latestSwagger 2.0AGPL-3.02026-07-17413281.9 KB
media

Media thumbnail

Serves 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/_matrix/media/r0/thumbnail/{name}/{id}

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