Send a WhatsApp message
Sends a WhatsApp template message from one of your registered senders to a recipient, and returns the message with its ID.
The API sends only template messages, so every send names one of your templates.
Behavior: Returns 201 with the new message. Poll whatsapp_messages_get for the delivery outcome. A repeat send with the same idempotency_key returns 200 with the original message and sends nothing.
Requires: Your account must have WhatsApp and its sending capability enabled, must have a subscription plan, and must not be blocked or suspended. from must be a sender registered on your account.
Authorizations
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Body
Attributes of the message to send.
Attributes of a WhatsApp template message to send. Consumed by whatsapp_messages_send.
Phone number of a sender registered on your account, in E.164 format, as returned by whatsapp_senders_list. The leading + is optional.
^\+?\d{6,20}$"+14155550100"
Recipient's phone number in E.164 format. The leading + is optional.
^\+?\d{6,20}$"+447537151866"
The template to send and the values for its dynamic parts. Consumed in template by whatsapp_messages_send.
Key that makes the send safe to retry, unique per account.
128"order-1001-shipped"
Response
The message created by the earlier send with the same idempotency_key.
Returned by whatsapp_messages_send.
A WhatsApp message you sent. Returned by whatsapp_messages_send.