---
title: "Get Attachment"
method: GET
path: "/v0/threads/{thread_id}/attachments/{attachment_id}"
tags: ["Threads"]
---

# Get Attachment

`GET /v0/threads/{thread_id}/attachments/{attachment_id}`

**CLI:**
```bash
agentmail threads get-attachment --thread-id <thread_id> --attachment-id <attachment_id>
```

## Path parameters

- `thread_id` string, required — ID of thread.
- `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.net/agentmail-to/apis/api.md) · [All operations](https://skmtc.net/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentmail-to/api/versions/394ddcdd9c29/schema)
