---
title: "GET /api/v1/inboxes/{inboxId}/messages/{messageId}/attachments/{attachmentIndex}"
method: GET
path: "/api/v1/inboxes/{inboxId}/messages/{messageId}/attachments/{attachmentIndex}"
tags: ["Messages"]
---

# GET /api/v1/inboxes/{inboxId}/messages/{messageId}/attachments/{attachmentIndex}

`GET /api/v1/inboxes/{inboxId}/messages/{messageId}/attachments/{attachmentIndex}`

## Request

- Base URL: `https://machineinbox.com`
- URL: `https://machineinbox.com/api/v1/inboxes/{inboxId}/messages/{messageId}/attachments/{attachmentIndex}`
- Auth: none required

## Path parameters

- `inboxId` string, uuid, required
- `messageId` string, uuid, required
- `attachmentIndex` integer, required

## Response `200`

Attachment bytes. The response Content-Type and filename match the stored attachment.

## Other responses

- `401`: A valid mailbox bearer token is required.
- `403`: The inbox is suspended.
- `404`: The inbox, message, attachment, or route was not found.
- `410`: The inbox has expired.
- `429`: A request or reply limit was reached.

---

[API](https://skmtc.dev/machineinbox/apis/machine-inbox-api.md) · [All operations](https://skmtc.dev/machineinbox/apis/machine-inbox-api/llms.txt) · [OpenAPI document](https://skmtc.dev/machineinbox/apis/machine-inbox-api/revisions/bcb3cf08ad6d?raw)
