---
title: "Media thumbnail"
method: GET
path: "/_matrix/media/r0/thumbnail/{name}/{id}"
tags: ["media"]
---

# Media thumbnail

`GET /_matrix/media/r0/thumbnail/{name}/{id}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/docs/_matrix/media/r0/thumbnail/:name/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

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.

## Path parameters

- `name` string, required
- `id` string, required

## Query parameters

- `width` integer
- `height` integer
- `method` string

## Response `200`

Thumbnail image

## Other responses

- `204`: No thumbnail available

## Changes

- **2026-07-08** `ae3c2fd65492`: 1 info
  - endpoint added
- **2024-08-20** `4009b08a3a5a`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/changes/_matrix/media/r0/thumbnail/:name/:id/get.md)

---

[API](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api.md) - [All operations](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/llms.txt) - [OpenAPI document](https://skmtc.dev/etkecc/apis/matrix-rooms-search-api/revisions/fafe2e40cd8c?raw)
