Skip to main content
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>"
  ],
  "meta_data": {},
  "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>'],
meta_data: {},
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>"],
"meta_data": {},
"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

x-api-key
string
required

API key needed to authorize the request

Body

application/json

The payload to send with the template message

variables
string[]
required
meta_data
object
required
phone
string
required

Phone number to send the template to

template_name
string
required

Name of the template to send

contact_name
string
email
string<email>

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,}$
stage_id
string
agent_id
string
from_phone_number
string

Phone number to send the template from

Variables for carousel cards

Response

Message sent successfully.