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

# Media thumbnail

`GET /avatar/{name}/{id}`

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

---

[API](https://skmtc.net/etkecc/apis/matrix-rooms-search-api.md) · [All operations](https://skmtc.net/etkecc/apis/matrix-rooms-search-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/etkecc/matrix-rooms-search-api/revisions/ae3c2fd65492/schema)
