Skip to main content

Send WhatsApp message

POST 

/message-server/whatsapp/send

Sends a WhatsApp message. The content is one of the following, mutually exclusive: one of the two is required.

  • Approved template (template): a template approved by Meta.
  • Free-form message (body): only within the 24h window from the user's last message.

Fallback and tracked links:

  • Fallback: if the message cannot be delivered via WhatsApp, a fallback to RCS (fallbackRcs) and/or SMS (fallbackSms) can be configured. The fallbacks apply only if your account supports mixed-channel sending; otherwise they are ignored.
  • Tracked links in the body: for templates with {shortLinkT1} in the body, insert the shortLinkT1 placeholder in the placeholders map with the actual destination URL.
  • Tracked URL buttons: the URL buttons of templates created with trackButtonLinks: true are tracked automatically, and there is nothing to pass.

Request​

Responses​

Request accepted. Check results.whatsapp.accepted to see whether the message was accepted.

  • accepted: true means the message was accepted for sending, not that it was delivered. Delivery confirmation arrives via webhook.
  • With fallbacks, results also carries rcs and/or sms: those messages are prepared now and sent only if the previous channel fails. In that case results.whatsapp.accepted and results.rcs.accepted are always true, and only the SMS can be rejected at this stage.
  • Omitted values: the results of the channels not involved, and reasons when the message is accepted.