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 requestsurl ="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
constaxios=require('axios');consturl="https://api.connectly.ai/v1/businesses/<business_id>/send/whatsapp_templated_messages";constheaders= {'Accept':'application/json','Content-Type':'application/json','X-API-Key':'<YOUR_KEY_HERE>'// <----- Replace by your API key};constdata= {// Your payload here};axios.post(url, data, { headers: headers }).then(response => {console.log(response.data); }).catch(error => {console.error(error); });