---
title: "bird sms media"
description: "Download a received MMS message's media"
canonical: "https://bird.com/docs/cli/reference/sms-media"
---

# `bird sms media`

## Usage

```bash
bird sms media <message-id> <media-id> [flags]
```

## Description

Download the media on a received MMS message: an image, video, audio clip or document. The media id is the `id` on the message's media entry,
which `bird sms get` returns.

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

bird sms media sms\_123 smf\_456 --output photo.jpg

--url prints the short-lived download URL (valid for 15 minutes) instead of
downloading, for handing to another tool. That URL is pre-authorized and needs
no Authorization header; the follow-up request must not send one. --url and
--output cannot be combined.

Media expires with its message, 30 days after it arrives, and this exits with a
not-found error from then on. A gone error means only the file expired: the
message still lists the media's mime\_type and filename.

## Examples

```bash
bird sms media <message-id> <media-id> --output photo.jpg
```

## Options

| Name           | Description                                               |
| -------------- | --------------------------------------------------------- |
| `--output, -o` | Write the bytes to this file instead of stdout            |
| `--url`        | Print the short-lived download URL instead of downloading |

## Related

| Name                                                          | Description                                 |
| ------------------------------------------------------------- | ------------------------------------------- |
| [`bird sms get`](/docs/cli/reference/sms-get)                 | Get an SMS message                          |
| [`bird sms list`](/docs/cli/reference/sms-list)               | List SMS messages                           |
| [`bird sms list-events`](/docs/cli/reference/sms-list-events) | List events for an SMS message              |
| [`bird sms send`](/docs/cli/reference/sms-send)               | Send an SMS or MMS message to one recipient |

## Related resources

- [Should I use a Bird SDK or call the API directly?](/explained/platform/should-i-use-an-sdk-or-call-the-api-directly) (answer)
- [Build your first integration](/learn/paths/integration) (course)
- [Send your first email](/docs/get-started/send-your-first-email) (docs)

[Get an implementation brief](/learn/workspace?topic=api-basics)
