Connectly Documentation
  • 👋Welcome to Connectly.ai
  • 🚀Quick Start
    • Prerequisites
    • Authentication
    • Send WhatsApp template message
    • Send WhatsApp session message
  • 📣Campaigns
    • Campaign Sendout
      • Send Campaigns
  • 🤖Sofia AI
    • How to use Sofia AI?
    • Sofia AI API
      • Reference
        • Core Concepts
        • sales_assistant_v2/invoke/v1
  • 📱Message API
    • Message Service API
      • MessageService
        • Send template message
        • Send session message
      • Error codes
    • Webhook API
      • WebhookService
        • Create a webhook registration by event topic
        • Update an existing webhook registration by event topic
        • Get webhook registrations for business
        • Delete a webhook registration for business
      • Webhook Payload
        • Delivery Status Error Codes
        • Payload Media Types
  • 🤖Business Management
    • Business Management API
      • Template Management
        • Create a template
        • Get templates
      • Quality Signals
  • 📱Integrations
    • Integrations
      • WebEngage Integration
      • Message your customers on Zendesk through Connectly
      • Message your customer on Intercom through Connectly
    • [Alpha] Moengage
      • MessageService
        • Send Campaign via API
  • 📊Analytics
    • Analytics
      • [Alpha] Campaign report
      • Reports API
        • Webhooks configuration
  • 👀FAQ
  • Migrating WhatsApp Accounts
  • How to use time delay?
Powered by GitBook
On this page
  1. Quick Start

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

PreviousPrerequisitesNextSend WhatsApp template message

Last updated 7 months ago

🚀