Send a template message
curl --request POST \
--url https://api.vambe.me/api/public/whatsapp/message/send \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"variables": [
"<string>"
],
"phone": "<string>",
"template_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({variables: ['<string>'], phone: '<string>', template_name: '<string>'})
};
fetch('https://api.vambe.me/api/public/whatsapp/message/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vambe.me/api/public/whatsapp/message/send"
payload = {
"variables": ["<string>"],
"phone": "<string>",
"template_name": "<string>"
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)WhatsApp Messages
Send WhatsApp Template (Body-based v2)
Send a WhatsApp template using a JSON payload. Include recipient, template, and variables in the body. Requires x-api-key.
POST
/
api
/
public
/
whatsapp
/
message
/
send
Send a template message
curl --request POST \
--url https://api.vambe.me/api/public/whatsapp/message/send \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"variables": [
"<string>"
],
"phone": "<string>",
"template_name": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({variables: ['<string>'], phone: '<string>', template_name: '<string>'})
};
fetch('https://api.vambe.me/api/public/whatsapp/message/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vambe.me/api/public/whatsapp/message/send"
payload = {
"variables": ["<string>"],
"phone": "<string>",
"template_name": "<string>"
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Headers
API key needed to authorize the request
Body
application/json
The payload to send with the template message
Phone number to send the template to
Name of the template to send
Email of the contact
Pattern:
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Phone number to send the template from
Variables for carousel cards
Show child attributes
Show child attributes
Response
Message sent successfully.
Was this page helpful?
