Sending Template Message
Use the /v1/messages endpoint to send templates messages to your customers. What's different about sending template messages is the body content of the message specified with the template parameter. The template parameter contains a namespace and a name pair that identifies the template and the values that apply to variables in that template.
Authorization
bearerAuth JWT access token returned by Signing In (POST /auth/v1/tokens/).
In: header
Request Body
application/json
The mobile number to send message to
The type of recipient which is "individual" in this case
"individual"The type of the message which "template" in this case
"template"The object defines the template parameters
An identifier for the message from your system
If the template being sent includes a flow, this parameter must be required and set to the value "true".
falseResponse Body
application/json
application/json
curl -X POST "https://example.com/conversation/wab/v1/messages" \ -H "Content-Type: application/json" \ -d '{ "type": "body", "parameters": [ { "type": "text", "text": "text-string" }, { "type": "currency", "currency": { "fallback_value": "$23.45", "code": "USD", "amount_1000": 23450 } }, { "type": "date_time", "date_time": { "fallback_value": "July 12, 1980", "timestamp": 1485470276 } } ] }'"{\n \"messages\": [{\n \"id\": \"<generated message id>\"\n }]\n}"Sending Message (Text or Media) POST
Send a WhatsApp text or media message. The documentation presents *Sending Text Message* and *Sending Media Message* as separate pages for the same endpoint; both payloads are accepted here. --- Text --- Use the messages node to send text messages to your customers. --- Media --- Use this API to send messages containing audio, documents, images, stickers, or videos to your customers.
Send Messenger message POST
Use this API to send text messages to your customers through messenger.