---
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`

## Changes

- **2026-07-15** `394ddcdd9c29` — 3 info
  - added the optional property `code` to the response with the `404` status
  - added the optional property `docs` to the response with the `404` status
  - added the optional property `fix` to the response with the `404` status

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/threads/:thread_id/attachments/:attachment_id/get.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
