Authentication
import requests
url = "https://api.connectly.ai/v1/businesses/<business_id>/send/whatsapp_templated_messages"
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'X-API-Key': '<YOUR_KEY_HERE>' # <------ Replace by your API key
}
payload = {
# Your payload here
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())const axios = require('axios');
const url = "https://api.connectly.ai/v1/businesses/<business_id>/send/whatsapp_templated_messages";
const headers = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'X-API-Key': '<YOUR_KEY_HERE>' // <----- Replace by your API key
};
const data = {
// Your payload here
};
axios.post(url, data, { headers: headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});Last updated