📞 CallFlow API

CallFlow API Documentation

Build integrations using our powerful REST API and SDKs. All endpoints require API authentication.

Table of Contents

Getting Started

CallFlow's API enables seamless integration with your call center workflows. You'll need an API key to authenticate requests.

First, create an account and access your API key from the dashboard.

API Reference

Endpoints

POST /api/v1/call

Initiate a Call

Start a new outbound call session with specified parameters.

{
"to": "1234567890",
"from": "0987654321",
"campaign_id": "camp_123abc"
}
GET /api/v1/analytics

Get Call Analytics

Retrieve metrics and performance data for your call campaigns.

{
"campaign_id": "camp_123abc",
"start_date": "2025-09-01",
"end_date": "2025-09-30"
}

Response Status Codes

200

Success

Request was successful

400

Bad Request

Invalid request format

401

Unauthorized

Missing or invalid authentication

404

Not Found

Requested resource does not exist

Authentication

All API requests must be authenticated with an API key. Include it in the Authorization header:

Authorization: Bearer YOUR_API_KEY
Click to copy

How to Get an API Key

  1. Log in to your CallFlow account
  2. Navigate to API settings in the dashboard
  3. Generate a new API key with desired permissions
  4. Use the key in your authenticated requests

⚠️ Store your API key securely—never expose it in client-side code or public repositories.

Code Examples

Node.js Example

const axios = require('axios');

axios.post('https://api.callflow.com/api/v1/call', {
    to: '+1234567890',
    from: '+0987654321',
    campaign_id: 'camp_123abc'
}, {
    headers: {
        Authorization: `Bearer YOUR_API_KEY`,
        'Content-Type': 'application/json'
    }
})
.then(response => {
    console.log('Call initiated:', response.data);
})
.catch(error => {
    console.error('Error initiating call:', error.response?.data || error.message);
});
                        

Python Example

import requests

url = "https://api.callflow.com/api/v1/call"
payload = {
    "to": "+1234567890",
    "from": "+0987654321",
    "campaign_id": "camp_123abc"
}
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)
print("Response status code:", response.status_code)
print("Response body:", response.json())
                        

Need Help Integrating?

Our developers are available to help with API integration and troubleshooting.

Contact Developer Support