---
title: "Download email attachment"
method: GET
path: "/api/e2/attachments/{id}/{filename}"
tags: ["Attachments"]
---

# Download email attachment

`GET /api/e2/attachments/{id}/{filename}`

Download an email attachment by email ID and filename. Returns the binary file content with appropriate Content-Type and Content-Disposition headers.

## Path parameters

- `id` string, required
- `filename` string, required

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `404` — Response for status 404
- `500` — Response for status 500

---

[API](https://skmtc.dev/stainless-api/apis/inbound-email-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/inbound-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/inbound-email-api/revisions/e279d3cb940b/schema)
