---
title: "Get the data that makes up the specified attachment"
method: GET
path: "/attachments/{id}/data"
tags: ["Attachments"]
---

# Get the data that makes up the specified attachment

`GET /attachments/{id}/data`

Get the data that makes up the specified attachment. The output is the raw binary data.

## Response `200`

OK

## Other responses

- `default` — Error

## Changes

- **2026-03-18** `e271d0e41f6d` — 1 breaking, 1 warning, 6 info
  - removed the media type `application/json` for the response with the status `200`
  - deleted the `path` request parameter `id`
  - api operation id `get_attachments_id_data` removed and replaced with `getAttachmentsIdData`
  - the endpoint scheme security `XF-Api-Key` was added to the API
  - …4 more
- **2026-02-03** `fc0a40f3b859` — 2 breaking, 4 warning, 4 info
  - added the new path request parameter `id`
  - removed the media type `*/*` for the response with the status `200`
  - 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`
  - …6 more

[Change history](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/changes/attachments/:id/data/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-service-production.skmtc.workers.dev/v1/apis/xenforo-ltd/xenforo-api/revisions/b15eba33657a/schema)
