Korero Platforms
  • Introduction
  • Channel Prerequisites
  • Error Codes
  • Credits
  • Solutions
  • Channel APIs
    • SMS APIs
      • Single Message to Single MSISDN API
      • Single Message to Multiple MSISDN API
      • Multiple Messages to Multiple MSISDN API
    • Voice APIs
      • Send an outbound call
      • Send Text to Voice OBD API
    • Email APIs
      • Send Email API
    • WhatsApp API
      • Template Message - Text
      • Template message - document
      • Template message - Image
Powered by GitBook
On this page
  • Send WhatsApp Message API
  • Sample Request Body

Was this helpful?

  1. Channel APIs
  2. WhatsApp API

Template Message - Text

Send WhatsApp Message API

POST http://api.koreroplatforms.com/v1/whatsapp/send

This endpoint allows you to send a template message with just plain text to the recipient

Headers

Name
Type
Description

api_key

string

API Key

Request Body

Name
Type
Description

from

string

The WhatsApp number associated with the WABA account

to

string

Recipient Mobile Number

type

string

pass value as 'template'

template

object

The object to provide the template and user-specific information

template_id

string

The template ID provided on the Korero platform

body

object

The object to pass personalized information

type

string

pass value as 'text'

personalization

array

An array of personalized value that will replace the variables within the template

{
    "timestamp": "2021-05-19T11:01:22.0Z",
    "status": "success",
    "request_id": "5ef1eda4-9cd1-42d2-bf3f-4661e4e6f7bc",
    "recipients": [
        {
            "to": "919699112120",
            "message_id": "WA162140228225012"
        }
    ]
}

Sample Request Body

{
    "from": "919311815518",
    "to": "919699112120",
    "type": "template",
    "template": {
        "template_id":"1506407",
        "body":{
            "type":"text",
            "personalization":["Nitin"]
        }
    }
}
PreviousWhatsApp APINextTemplate message - document

Last updated 3 years ago

Was this helpful?