Sign inGet Started

bird amb attachment

Usage

Code example
bird amb attachment <message-id> <index> [flags]

Description

Download and decrypt one attachment from an Apple Messages for Business message. <index> is the attachment's zero-based position in the message's content.attachments array; read the message with bird amb get to see its attachments. For a received attachment, <message-id> is the message.id of the amb.received webhook event. Apple keeps attachments for 30 days, renewed when a reference is reused, so download them on receipt.

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

bird amb attachment amb_123 0 --output photo.jpg

Examples

Code example
bird amb attachment <message-id> <index> --output photo.jpg

Options

NameDescription
--output, -oWrite the bytes to this file instead of stdout
NameDescription
bird amb getGet a message
bird amb listList messages
bird amb list-eventsList events for a message
bird amb sendReply to an Apple Messages conversation

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