Skip to the documentation
API

Download a file

The bytes, exactly as stored.

GETapi.openemail.uk/files/{id}/content

Runs the real call against your workspace, with your own key.

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 OKContent-Type: application/pdfContent-Length: 184233Content-Disposition: inline; filename="invoice-0912.pdf"

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