Sign inGet Started

bird whatsapp files upload

Usage

Code example
bird whatsapp files upload [flags]

Description

Upload a WhatsApp file

Stores a file for your WhatsApp messages for 30 days, hands it to WhatsApp for the number in from, and returns a waf_ file ID to send as a free-form message's image, video, audio, sticker or document file_id, or as a template's media header, from that number, so the same file can be sent to several recipients with one upload.

Pass the file with --file ("-" reads stdin); any other fields are flags. Run --dry-run to print the parts that would be sent, including the file's path and size, without uploading it.

Examples

Code example
# check what would be sent, without sending it
bird whatsapp files upload --from <from> --file ./document.pdf --dry-run

# upload it
bird whatsapp files upload --from <from> --file ./document.pdf

Options

Request

NameDescription
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--fromConnected E.164 number owned by this workspace that the file is uploaded to WhatsApp with. Only a message sent from this number can send the file. (required)
--nameDisplay filename. Defaults to the uploaded filename.
--mime-typeMedia type of the file. Defaults to the type we detect from the contents; send it for a type detection cannot tell apart, such as an Office document or AAC, AMR, M4A or 3GPP media.
--fileThe file, at most 100 MB, as the last part of the form. Its filename becomes the file's name unless name is given. (required)
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp files downloadDownload an uploaded WhatsApp file
bird whatsapp files getGet a WhatsApp file

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