Authentication
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API key from your Dashboard at any time.
The API key must be included as X-API-Key
HTTP header in requests.
Python Example
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())
JavaScript Example
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);
});
Replace
Last updated