Skip to content

Image Messages

Send WhatsApp image messages: photos and graphics with optional captions. JPEG/PNG up to 5MB, automatic CDN delivery and template support.

View .md

Send images with optional captions to share product photos, receipts, or visual content.

Send an Image

const result = await zavu.messages.send({ to: "+14155551234", channel: "whatsapp", messageType: "image", content: { mediaUrl: "https://example.com/product.jpg", }, });

Image with Caption

const result = await zavu.messages.send({ to: "+14155551234", channel: "whatsapp", messageType: "image", text: "Check out our new product!", content: { mediaUrl: "https://example.com/product.jpg", }, });

Specifications

PropertyRequirement
FormatsJPEG, PNG
Max size5 MB
CaptionOptional, max 1024 chars

URL Requirements

Your image URL must:

  • Be publicly accessible (no authentication)
  • Use HTTPS
  • Return the correct Content-Type header
  • Be available for at least 24 hours

Use Cases

  • Product photos
  • Order receipts
  • QR codes
  • Promotional banners
  • Visual instructions