# `bird email threads messages attachment`

## Usage

```bash
bird email threads messages attachment <thread-id> <message-id> <attachment-id> [flags]
```

## Description

Download one attachment's raw bytes from a thread message. List the attachment manifest first with attachments to find an attachment id.

The bytes are written to --output when set, otherwise to stdout.

## Examples

```bash
bird email threads messages attachment thr_123 rem_456 att_789 --output invoice.pdf
```

## Options

| Name           | Description                                    |
| -------------- | ---------------------------------------------- |
| `--output, -o` | Write the bytes to this file instead of stdout |

## Related

| Name                                                                                                | Description                                      |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [`bird email threads messages attachments`](/docs/cli/reference/email-threads-messages-attachments) | List a thread message's attachments              |
| [`bird email threads messages body`](/docs/cli/reference/email-threads-messages-body)               | Get a thread message's original body             |
| [`bird email threads messages get`](/docs/cli/reference/email-threads-messages-get)                 | Get a message in a thread                        |
| [`bird email threads messages list`](/docs/cli/reference/email-threads-messages-list)               | List messages in a thread                        |
| [`bird email threads messages raw`](/docs/cli/reference/email-threads-messages-raw)                 | Download a thread message's raw RFC 5322 content |
| [`bird email threads messages reply`](/docs/cli/reference/email-threads-messages-reply)             | Reply to a thread message                        |