Skip to main content

WhatsApp

The WhatsApp Business Platform, through the API key you already use for payments. Send order confirmations, receipts and OTPs from your own business number, and receive replies.

One rule governs everything: outside a conversation you may only send a template Meta has approved. Once a customer replies, a 24-hour window opens and free text works until it closes. Almost every message that never arrived is a free-text send outside an open window.

๐Ÿ“„๏ธSend an approved WhatsApp template

Send `values` to fill everything the template asks for: body variables, a media header, and a value per button (a link, a coupon code, or a quick-reply payload). A link button without its value renders with nothing substituted, so every recipient lands on the same page. Read the field list for a template from `inputs` on GET /api/v1/waba/templates. `variables` remains as a body-only shorthand. A send missing a required value is refused with 400 naming the field, and nothing is billed.

๐Ÿ“„๏ธSend an image, document, audio, video or sticker into a conversation

Multipart. The file is uploaded to Meta and sent as a media message, and a copy is archived so the thread still renders it after Meta's 30-day media retention expires. The WhatsApp type is inferred from the MIME type, so `image/webp` becomes a sticker rather than an image. Size ceilings are Meta's own and differ sharply by type: image 5MB, sticker 512KB, audio and video 16MB, document 100MB. Checked before upload, so an oversized file is refused with the limit and the actual size named. Session message, so it needs an open window.