---
title: "Get an attachment thumbnail URL"
method: GET
path: "/attachments/{id}/retina-thumbnail"
tags: ["Attachments"]
---

# Get an attachment thumbnail URL

`GET /attachments/{id}/retina-thumbnail`

## Request

- Base URL: `https://example.com/api`
- URL: `https://example.com/api/attachments/{id}/retina-thumbnail`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://example.com/oauth2/authorize`
    - Token URL: `https://example.com/api/oauth2/token` scopes: `attachment:read`
  - API key in header `XF-Api-Key`
- TypeScript: <https://skmtc.dev/xenforo-ltd/apis/xenforo-api/docs/attachments/:id/retina-thumbnail/get.ts> (a function with typed inputs; its response is checked against the schema)

Get an attachment thumbnail URL. URL returned via a 301 redirect.

## Response `200`

OK

- object
  - `url` string: The URL to the thumbnail is returned via a 301 redirect's Location header.

## Other responses

- `default`: Error

## Changes

- **2026-03-18** `e271d0e41f6d`: 1 warning, 6 info
  - deleted the `path` request parameter `id`
  - api operation id `get_attachments_id_retina_thumbnail` removed and replaced with `getAttachmentsIdRetinaThumbnail`
  - the endpoint scheme security `XF-Api-Key` was added to the API
  - the endpoint scheme security `XF-OAuth2` was added to the API
  - …3 more
- **2026-02-03** `fc0a40f3b859`: 1 breaking, 4 warning, 4 info
  - added the new path request parameter `id`
  - the optional response header `XF-Latest-Api-Version` removed for the status `200`
  - the optional response header `XF-Request-User` removed for the status `200`
  - the optional response header `XF-Request-User-Extras` removed for the status `200`
  - …5 more

[Operation history](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/changes/attachments/:id/retina-thumbnail/get.md)

---

[API](https://skmtc.dev/xenforo-ltd/apis/xenforo-api.md) - [All operations](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/revisions/b15eba33657a?raw)
