Send a template message
curl --request POST \
--url https://api.vambe.me/api/public/whatsapp/message/send/{phone}/template/{templateId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"variables": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({variables: ['<string>']})
};
fetch('https://api.vambe.me/api/public/whatsapp/message/send/{phone}/template/{templateId}', 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/{phone}/template/{templateId}"
payload = { "variables": ["<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 by Phone and Template ID
Send a WhatsApp template to a single recipient using path params phone and templateId. Provide template variables in the body. Requires x-api-key. Optional from-phone-number query to select the sender phone.
POST
/
api
/
public
/
whatsapp
/
message
/
send
/
{phone}
/
template
/
{templateId}
Send a template message
curl --request POST \
--url https://api.vambe.me/api/public/whatsapp/message/send/{phone}/template/{templateId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"variables": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({variables: ['<string>']})
};
fetch('https://api.vambe.me/api/public/whatsapp/message/send/{phone}/template/{templateId}', 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/{phone}/template/{templateId}"
payload = { "variables": ["<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
Path Parameters
The template ID of the message to be sent
The phone number to send the message to
Query Parameters
Body
application/json
The payload to send with the template message
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,}$Whether the sender should be auto-assigned to the contact
Agent ID to assign to the contact
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Variables for carousel cards
Show child attributes
Show child attributes
Response
Message sent successfully.
Was this page helpful?
