---
title: "Download a thumbnail of content from the content repository"
method: GET
path: "/_matrix/media/v3/thumbnail/{serverName}/{mediaId}"
tags: ["Media"]
deprecated: true
---

# Download a thumbnail of content from the content repository

`GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/media/v3/thumbnail/{serverName}/{mediaId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/media/v3/thumbnail/:serverName/:mediaId/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

**NOTE:** 
Replaced by [`GET /_matrix/client/v1/media/thumbnail/{serverName}/{mediaId}`](https://spec.matrix.org/v1.19/client-server-api/#get_matrixclientv1mediathumbnailservernamemediaid)
(requires authentication).


Download a thumbnail of content from the content repository.
See the [Thumbnails](https://spec.matrix.org/v1.19/client-server-api/#thumbnails) section for more information.

**WARNING:** 
**[Changed in `v1.11`]**  This endpoint MAY return `404 M_NOT_FOUND`
for media which exists, but is after the server froze unauthenticated
media access. See [Client Behaviour](https://spec.matrix.org/v1.19/client-server-api/#content-repo-client-behaviour) for more
information.

## Path parameters

- `serverName` string, mx-server-name, required
- `mediaId` string, required

## Query parameters

- `width` integer, required
- `height` integer, required
- `method` 'crop' | 'scale'
- `allow_remote` boolean
- `timeout_ms` integer
- `allow_redirect` boolean
- `animated` boolean

## Response `200`

A thumbnail of the requested content.

## Other responses

- `307`: A redirect to the thumbnail of the requested content.
- `308`: A redirect to the thumbnail of the requested content.
- `400`: The request does not make sense to the server, or the server cannot thumbnail the content. For example, the client requested non-integer dimensions or asked for negatively-sized images.
- `413`: The local content is too large for the server to thumbnail.
- `429`: This request was rate-limited.
- `502`: The remote content is too large for the server to thumbnail.
- `504`: The content is not yet available. A [standard error response](https://spec.matrix.org/v1.19/client-server-api/#standard-error-response) will be returned with the `errcode` `M_NOT_YET_UPLOADED`.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
