---
title: "Download a file"
description: "The bytes, exactly as stored."
url: "https://openemail.uk/docs/api/files/content"
area: "API"
category: "Mailbox"
---

# Download a file

The bytes, exactly as stored.

`GET /files/{id}/content`

## GET /files/{id}/content

The bytes, exactly as stored.

## Example

Needs `threads:read`. The answer carries the file’s own `Content-Type` and name, `inline` for an image, a PDF or plain text and `attachment` otherwise, and `download=true` always asks for `attachment`.

**curl**

```
curl "$OE/files/file_6bb640f5b99e47deb758f1f5/content" -H "$AUTH" -o invoice-0912.pdf
```

**Response**

```
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Length: 184233
Content-Disposition: inline; filename="invoice-0912.pdf"
```

> A file whose bytes are gone from storage answers 404, the same as a missing one.
