WhatsApp Template Sending API

During an active Service Conversation Window, you can send free-form WhatsApp messages to users without using templates. Check Reply Message API

To send message to end customers outside service conversation window, we need to send template messages.

API Endpoint

GET: https://app.cunnekt.com/restapi/v1/whatsapp/sendtemplate

Authentication

All requests must be authenticated using an API key.

API-KEY: your_api_key
Content-Type: application/json

API Payload:

To create a template

  1. Go to Template List Page
  2. Search the template you want to send to your customers using Filter options.
  3. Click on Action button at the right side of the specific template row. (visible as 3 vertical dots)
  4. A menu will appear, click on API Payload.
  5. A popup with API Payload will be available.
  6. Copy the payload and change the customer_phone_number data and message variables(if available).

Example:

Method: POST
curl 'https://app.cunnekt.com/restapi/v1/whatsapp/sendtemplate' \
-H 'Content-Type: application/json' \
-H 'API-KEY: {your_api_key}' \
-d '
{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "",
  "type": "template",
  "template": {
    "name": "rate_your_experience",
    "language": {
      "code": "en"
    },
    "components": [
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "service"
          }
        ]
      }
    ]
  }
}'