---
title: "Get Attachment"
method: GET
path: "/v0/drafts/{draft_id}/attachments/{attachment_id}"
tags: ["Drafts"]
---

# Get Attachment

`GET /v0/drafts/{draft_id}/attachments/{attachment_id}`

## Request

- Base URL: `https://api.agentmail.to`
- URL: `https://api.agentmail.to/v0/drafts/{draft_id}/attachments/{attachment_id}`
- Auth: HTTP bearer

**CLI:**
```bash
agentmail drafts get-attachment --draft-id <draft_id> --attachment-id <attachment_id>
```

## Path parameters

- `draft_id` string, required: ID of draft.
- `attachment_id` string, required: ID of attachment.

## Response `200`

- AttachmentResponse
  - `attachment_id` string, required: ID of attachment.
  - `filename` string: Filename of attachment.
  - `size` integer, required: Size of attachment in bytes.
  - `content_type` string: Content type of attachment.
  - `content_disposition` 'inline' | 'attachment': Content disposition of attachment.
  - `content_id` string: Content ID of attachment.
  - `download_url` string, required: URL to download the attachment.
  - `expires_at` string, date-time, required: Time at which the download URL expires.

## Other responses

- `404`

---

[API](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api.md) - [All operations](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/revisions/869b7f1c360c?raw)
