WhatsApp messaging

Send template message

Sends a predefined template to the customer.

post/admin/messengers/whatsapp-send-template

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/messengers/whatsapp-send-template
  • Auth: HTTP basic

Query parameters

chat_idnumber double required
Example:1

The ID of the chat.

paramsstring
Example:http_build_query($search)

Any parameters of record. <br>You should set at least one record`s parameter. <br>This parameters should be converted to query string.<br>For example:<br>$search = [ <br>  'main_attributes' => [<br>    'inbound' => 1<br>   ], <br>  'limit' => 15,<br>  'offset' => 5<br>];<br>

Request body

phonestring

Phone number. Required if chat_id is not provided

chat_idnumber

Chat ID. If provided, the phone number is taken from the chat

template_idnumber required

Template ID

customer_idnumber required

Customer ID

admin_idnumber

Admin ID.

Required if auth_type = APIKey. Ignored if auth_type = Admin (value is taken from system)

Example request

{
  "phone": "420123456879",
  "chat_id": 1,
  "template_id": 1,
  "customer_id": 1,
  "admin_id": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.