---
title: "Download attachment"
method: GET
path: "/attachments/{attId}/download"
tags: ["Attachments"]
---

# Download attachment

`GET /attachments/{attId}/download`

## Request

- Base URL: `https://api.caliuapp.com`
- URL: `https://api.caliuapp.com/attachments/{attId}/download`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `caliu_session`

Stream a file attachment from R2 storage. Its uploader, plus anyone who can open a note referencing it that its owner or one of its editors uploaded it to; a note on a link makes it downloadable without authentication.

## Path parameters

- `attId` string, required: Attachment ID

## Response `200`

File stream

## Other responses

- `404`: Not found

---

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