---
title: "Download mailbox inbox attachment"
method: GET
path: "/mailboxes/{id}/inbox/attachments"
tags: ["Mailboxes"]
---

# Download mailbox inbox attachment

`GET /mailboxes/{id}/inbox/attachments`

## Request

- Base URL: `https://shipmail.to/api/v1`
- URL: `https://shipmail.to/api/v1/mailboxes/{id}/inbox/attachments`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://shipmail.to/api/auth/oauth2/authorize`, token URL `https://shipmail.to/api/auth/oauth2/token`)

Download a raw attachment blob from a mailbox inbox message. Blob IDs are query parameters because they can contain slash characters.

## Query parameters

- `blob_id` string, required
- `name` string

## Headers

- `X-Shipmail-Organization` string

## Response `200`

Attachment bytes.

## Other responses

- `401`: Authentication failed.
- `403`: Insufficient permissions.
- `404`: Resource not found.
- `413`: Attachment too large.
- `422`: Validation failed.
- `429`: Rate limit exceeded.

---

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