---
title: "Get an attachment download link"
method: GET
path: "/v1/messages/{message_id}/attachments/{attachment_id}"
tags: ["Messages"]
---

# Get an attachment download link

`GET /v1/messages/{message_id}/attachments/{attachment_id}`

## Request

- Base URL: `https://api.send0.dev`
- URL: `https://api.send0.dev/v1/messages/{message_id}/attachments/{attachment_id}`
- Auth: HTTP bearer

## Path parameters

- `message_id` string, required
- `attachment_id` string, required

## Response `200`

AttachmentDownload

- AttachmentDownload
  - `id` string, required
  - `filename` string, nullable, required
  - `content_type` string, required
  - `size` integer, required
  - `inline` boolean, required
  - `content_id` string, nullable, required
  - `object` 'attachment', required
  - `message_id` string, required
  - `download_url` string, required: Pre-signed URL, valid until expires_at
  - `expires_at` string, date-time, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `403`: Not allowed (scope, policy or account state)
- `404`: Not found, or not visible to this key
- `429`: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached

---

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