Skip to main content

WhatsApp

📄️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.