---
title: "Downloads an attachment, optionally as a resized image derivation."
method: GET
path: "/api/attachments/{attachmentId}"
tags: ["Attachments"]
---

# Downloads an attachment, optionally as a resized image derivation.

`GET /api/attachments/{attachmentId}`

## Request

- Base URL: `https://app.airfocus.com`
- URL: `https://app.airfocus.com/api/attachments/{attachmentId}`
- Auth: HTTP bearer

Streams the binary contents of a team-scoped attachment. When `width` and/or `height` are supplied and the source is an image, a derived (resized) variant is returned. If the request is unauthenticated, has a browser-style `Accept: text/html` header, and the server is configured with an unauthenticated-redirect URI, the response is a 302 redirect to that URI; otherwise unauthenticated requests fail with 401.

## Path parameters

- `attachmentId` string, uuid, required

## Query parameters

- `width` integer
- `height` integer
- `download` boolean

## Headers

- `Accept` string

## Response `200`

## Other responses

- `302`
- `400`: If path parameters are invalid or resource does not exist.
- `default`: If any other error happens.

---

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