Skip to content
Shortcut: /, ⌘K or Ctrl+K

polymorfa media

Inspect, download, and persist Messaging media.

Polymorfa CLI · CLI API requests

View as Markdown

polymorfa media download

Download Messaging media to a local file, print its signed link, or decrypt it from a stored webhook event.

Usage

polymorfa media download [MEDIA] [flags]

Examples

polymorfa media download media_123 --output ./attachment.bin
polymorfa media download media_123 --url
polymorfa media download --from-event ./message.json -o ./photo.jpg

Arguments

  • MEDIAoptional

    Messaging media ID. Omit it when using --from-event.

Flags

  • --forceboolean

    Overwrite an existing output file.

  • --from-event <value>takes a value

    Decrypt media from the WhatsApp CDN using a stored message webhook JSON file. The file contains a decryption key.

  • --max-bytes <value>takes a value

    Maximum bytes to download.

    Default 104857600
  • -o, --output <value>takes a value

    Destination file path.

  • --urlboolean

    Print the short-lived signed download link to stdout instead of downloading.

Also accepts the global flags.

polymorfa media persist

Persist Messaging media to server storage.

Usage

polymorfa media persist MEDIA [flags]

Arguments

  • MEDIArequired

    Messaging media ID.

Flags

  • --idempotency-key <value>takes a value

    Safely identify retries of this persistence request.

Also accepts the global flags.

polymorfa media view

View Messaging media metadata.

Usage

polymorfa media view MEDIA [flags]

Arguments

  • MEDIArequired

    Messaging media ID.

Flags

Also accepts the global flags.