Template Message API

This endpoint (JSON containing 'type_template' object) sends a template message to a phone number on WhatsApp.

URL:​ ​https://waapi.pepipost.com/api/v2/message/

Method: POST

Parameters

Request Body

curl -X POST \
  https://waapi.pepipost.com/api/v2/message/ \
  -H 'Authorization: Bearer AUTH_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
	"message": [{
	    "recipient_whatsapp": "<mobile-number-with-country-code>", 
	    "message_type": "template",
	    "source": "<source-id>", 
	    "x-apiheader": "<custom-data>",
	    "type_template": [{
	        "name": "<template-name>", 
	        "attributes": ["sample1", "sample2"], // comma separated template attributes
	        "language": {
	            "locale": "<template-language>",
	            "policy": "deterministic" 
	        }
	    }] 
}]

Last updated