Upload Media and Send Image Message
A 2-step recipe with WhatsApp. We can help you get access.
Recipe · 2 steps
Upload Media and Send Image Message
with WhatsApp
Upload an image and deliver it to a WhatsApp user as an image message.
- Upload the binary image file to the WhatsApp media endpoint, returning a media ID that persists for 30 days.
- Send an image message to the recipient that references the uploaded media ID, optionally including a caption.
What you'll need to have ready
- accessToken: System User or User Access Token with whatsapp_business_messaging permission.
- phoneNumberId: The WhatsApp phone number ID that sends the message.
- to: Recipient phone number in E.164 format without the leading plus.
- file: The binary image file content to upload.
- fileType: MIME type of the image (e.g. image/jpeg).
- caption: Optional caption text to display under the image.
For your developer
Arazzo workflow whatsapp:upload-media-send-image, 2 operations: uploadMedia → postByPhoneNumberIdMessages. Specs on APIs.io.