Get Campaign Status
curl --request GET \
--url https://api.example.com/api/campaigns/{campaign_id}/statusimport requests
url = "https://api.example.com/api/campaigns/{campaign_id}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/campaigns/{campaign_id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/campaigns/{campaign_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/campaigns/{campaign_id}/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/campaigns/{campaign_id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/campaigns/{campaign_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"campaign_status": "<string>",
"time_range_from": "<string>",
"time_range_to": "<string>",
"stats": {}
}Campaigns
Get Campaign Status
Get current status and progress for a campaign
GET
/
api
/
campaigns
/
{campaign_id}
/
status
Get Campaign Status
curl --request GET \
--url https://api.example.com/api/campaigns/{campaign_id}/statusimport requests
url = "https://api.example.com/api/campaigns/{campaign_id}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/campaigns/{campaign_id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/campaigns/{campaign_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/campaigns/{campaign_id}/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/campaigns/{campaign_id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/campaigns/{campaign_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"campaign_status": "<string>",
"time_range_from": "<string>",
"time_range_to": "<string>",
"stats": {}
}Get Campaign Status
Return the current status and progress counters for a campaign.Path Parameters
string
required
UUID of the campaign
Example Request
curl "https://api.vaani.ai/api/campaigns/abc-123-xyz/status" \
-H "X-API-Key: vaani_abc123..."
Response 200 OK
{
"id": "abc-123-xyz",
"campaign_name": "Summer Promo 2024",
"campaign_status": "active",
"call_concurrency": 3,
"days_of_week": "monday,tuesday,wednesday,thursday,friday",
"time_range_from": "07:30:00Z",
"time_range_to": "13:30:00Z",
"max_retries": 3,
"retry_after_mins": 30,
"agent": {
"id": "agent-456",
"name": "Sales Agent"
},
"total_leads": 1000,
"completed_calls": 523,
"pending_calls": 477,
"failed_calls": 12,
"created_at": "2026-07-01T10:30:00Z",
"updated_at": "2026-07-01T14:22:15Z",
"stats": {
"total_calls": 523,
"completed": 498,
"pending": 477,
"in_progress": 3,
"failed": 12
}
}
Response Fields
string
Current status:
scheduled, active, paused, paused_out_of_range, completed, cancelledstring
Daily calling window start time (UTC with Z suffix)
string
Daily calling window end time (UTC with Z suffix)
object
Real-time call statistics for the campaign
⌘I

