---
title: "Download attachment bytes"
method: GET
path: "/attachments/{id}"
---

# Download attachment bytes

`GET /attachments/{id}`

## Request

- Base URL: `https://craaft.io/api/v1`
- URL: `https://craaft.io/api/v1/attachments/{id}`
- Auth: HTTP bearer

Streams the file with its stored `Content-Type` and a
`Content-Disposition: attachment` header (or `inline` - see the
`inline` parameter). Returns bare `404` (no JSON body) when the
attachment or its bytes are missing.

## Query parameters

- `inline` '1'

## Response `200`

File bytes

## Other responses

- `404`: Attachment not found or bytes unavailable

---

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