---
title: "Download an attachment or inline image"
method: GET
path: "/attachments/{media}"
tags: ["Ticket messages"]
---

# Download an attachment or inline image

`GET /attachments/{media}`

## Request

- Base URL: `https://there-there.app/api`
- URL: `https://there-there.app/api/attachments/{media}`
- Auth: HTTP bearer

Returns the file itself, served inline under its own content type. The url and download_url on a message's attachments and inline_images point here whenever the ticket was fetched with an API token, so use those values rather than building this URL yourself. Files kept on object storage answer with a redirect to a short-lived storage URL, so follow redirects. No X-Workspace-Id header is needed: the workspace is derived from the file.

## Path parameters

- `media` string, required

## Query parameters

- `download` boolean

## Response `200`

The file

## Other responses

- `302`: Redirect to a short-lived object storage URL
- `403`: Not allowed
- `404`: Resource not found

---

[API](https://skmtc.dev/there-there/apis/there-there-api.md) · [All operations](https://skmtc.dev/there-there/apis/there-there-api/llms.txt) · [OpenAPI document](https://skmtc.dev/there-there/apis/there-there-api/revisions/1811fb0febc1?raw)
