# Attachments

Download a file from a message.

## mailset attachments get

Download an attachment.

```bash
mailset attachments get <id>
```

### Flags

- `<id>` (argument, required): The attachment’s id, from the message it came on in `threads get`.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/attachments#attachments.get-returns).

Example:

```bash
mailset attachments get att_3c9e1f7a5b2d4086c7e1a9f2 --out invoice.pdf
```

In the API: [POST /v1/attachments.get](https://mailset.app/docs/api/attachments#attachments.get)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content