---
title: "Download an email attachment"
method: GET
path: "/inbox/messages/{id}/attachments/{attachmentId}"
tags: ["inbox"]
---

# Download an email attachment

`GET /inbox/messages/{id}/attachments/{attachmentId}`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/inbox/messages/{id}/attachments/{attachmentId}`
- Auth: HTTP bearer

With `disposition=inline`, image attachments are returned inline.

## Path parameters

- `id` string, required
- `attachmentId` string, required

## Query parameters

- `disposition` string

## Response `200`

Attachment binary content

## Other responses

- `401`: Missing or invalid API key
- `404`: Resource not found
- `500`: Server error

---

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