Skip to main content
WhatsApp Business API enables high-engagement messaging with rich features like images, documents, interactive buttons, and more.

When to Use WhatsApp

  • Customer support: Rich media and quick replies
  • Marketing campaigns: Higher open rates than SMS (90%+ vs 20%)
  • Order updates: Detailed information with images and tracking
  • International messaging: Often cheaper than SMS

Basic WhatsApp Message

const result = await zavu.messages.send({
  to: "+14155551234",
  text: "Hello from Zavu!",
  channel: "whatsapp",
});

The 24-Hour Conversation Window

WhatsApp enforces a conversation window that determines what types of messages you can send:
User sends message → 24-hour window opens → Send any message type

                     Window expires → Template messages only
Message TypeWithin 24hAfter 24h
Text (session)YesNo
Media (session)YesNo
Interactive (session)YesNo
Template (pre-approved)YesYes
Sending a session message outside the 24-hour window will fail. Use templates for messages outside the window.

Message Types

WhatsApp supports rich message formats beyond plain text:

Session Messages (within 24h window)

TypeUse CaseGuide
TextSimple messagesText
ImageProduct photos, receiptsImage
VideoTutorials, promotionsVideo
AudioVoice notes, announcementsAudio
DocumentPDFs, invoicesDocument
StickerEngagement, brandingSticker
LocationStore location, deliveryLocation
ContactShare contact infoContact
ButtonsQuick actionsButtons
ListMultiple optionsList
ReactionAcknowledge messagesReaction

Template Messages (anytime)

Pre-approved messages that can be sent outside the 24-hour window. See Templates Guide.

Delivery Status

WhatsApp provides detailed delivery tracking:
StatusDescription
queuedMessage accepted by Zavu
sentSent to WhatsApp servers
deliveredDelivered to user’s device
readUser opened the message
failedDelivery failed
WhatsApp is the only channel that provides “read” receipts, useful for tracking engagement.

Quality Rating

Meta tracks your messaging quality. Maintain good standing by:
  1. Getting opt-in consent before messaging
  2. Respecting user preferences - stop messaging users who don’t respond
  3. Sending relevant content - avoid spam-like messages
  4. Responding promptly - engage within the 24-hour window
Low quality ratings can result in reduced messaging limits or account suspension.

Common Errors

ErrorCauseSolution
Outside 24h windowSession expiredUse a template message
Template not approvedTemplate pending/rejectedWait for approval or fix issues
Invalid phone formatWrong number formatUse E.164 format (+country code)
User not on WhatsAppRecipient doesn’t have WhatsAppFall back to SMS
Rate limitedToo many messages too fastSlow down sending rate

Next Steps