Skip to main content
POST
Send a WhatsApp message

Authorizations

Authorization
string
header
required

Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.

Body

application/json

Attributes of the message to send.

Attributes of a WhatsApp template message to send. Consumed by whatsapp_messages_send.

from
string
required

Phone number of a sender registered on your account, in E.164 format, as returned by whatsapp_senders_list. The leading + is optional.

Pattern: ^\+?\d{6,20}$
Example:

"+14155550100"

to
string
required

Recipient's phone number in E.164 format. The leading + is optional.

Pattern: ^\+?\d{6,20}$
Example:

"+447537151866"

template
WhatsAppSendTemplate · object
required

The template to send and the values for its dynamic parts. Consumed in template by whatsapp_messages_send.

idempotency_key
string

Key that makes the send safe to retry, unique per account.

Maximum string length: 128
Example:

"order-1001-shipped"

Response

The message created by the earlier send with the same idempotency_key.

Returned by whatsapp_messages_send.

message
WhatsAppMessage · object
required

A WhatsApp message you sent. Returned by whatsapp_messages_send.