Sign inGet Started

bird sms media

Usage

Code example
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

Code example
bird sms media <message-id> <media-id> --output photo.jpg

Options

NameDescription
--output, -oWrite the bytes to this file instead of stdout
--urlPrint the short-lived download URL instead of downloading
NameDescription
bird sms getGet an SMS message
bird sms listList SMS messages
bird sms list-eventsList events for an SMS message
bird sms sendSend an SMS or MMS message to one recipient

Continue with the documentation, guides and examples for this topic.