curl --location -g --request POST '/{{vendorUid}}/contact/send-template-message' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
// optional from phone number id is not given it will use default phone number id
"from_phone_number_id": "{{fromPhoneNumberId}}",
"phone_number": "{{phoneNumber}}",
"template_name" : "your_template_name",
"template_language" : "ar",
"header_image" : "https://cdn.pixabay.com/photo/2015/01/07/15/51/woman-591576_1280.jpg",
"header_video" : "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4",
"header_document" : "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4",
"header_document_name" : "{full_name}",
"header_field_1" : "{full_name}",
"location_latitude" : "22.22",
"location_longitude" : "22.22",
"location_name" : "{first_name}",
"location_address" : "{country}",
"field_1" : "{Age}",
"field_2" : "{full_name}",
"field_3" : "{first_name}",
"field_4" : "{last_name}",
"button_0" : "{email}",
"button_1" : "{phone_number}",
"copy_code" : "YourCode",
// if you want to create contact if it does not exist
"contact": {
"first_name" : "Johan",
"last_name" : "Doe",
"email" : "johndoe@doamin.com",
"country" : "Saudi Arabia",
"language_code" : "ar",
"groups" : "examplegroup1,examplegroup2"
}
}'