List Campaigns
curl --request GET \
--url https://api.example.com/api/campaigns/import requests
url = "https://api.example.com/api/campaigns/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/campaigns/', 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/",
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/"
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/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/campaigns/")
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_bodyCampaigns
List Campaigns
Get a paginated list of campaigns for your organization
GET
/
api
/
campaigns
/
List Campaigns
curl --request GET \
--url https://api.example.com/api/campaigns/import requests
url = "https://api.example.com/api/campaigns/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/campaigns/', 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/",
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/"
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/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/campaigns/")
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_bodyList Campaigns
Return a paginated list of campaigns for the authenticated organization.Query Parameters
integer
default:"1"
Page number (1-indexed)
integer
default:"20"
Items per page (max 100)
string
Filter by status:
active, paused, completed, cancelled, scheduledExample Request
curl "https://api.vaani.ai/api/campaigns/?page=1&page_size=20&status=active" \
-H "X-API-Key: vaani_abc123..."
Response 200 OK
{
"campaigns": [
{
"id": "57fbcf93-a809-4038-8ea9-d676cf7d7fd4",
"campaign_name": "Summer Promo 2024",
"campaign_status": "active",
"agent_id": "5e737076-fea2-4157-8343-a8e49e5f0990",
"call_concurrency": 3,
"total_leads": 1000,
"completed_calls": 523,
"created_at": "2026-07-01T10:30:00Z",
"updated_at": "2026-07-01T14:22:15Z"
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total": 45,
"total_pages": 3
}
}
Campaign Status Values
| Status | Description |
|---|---|
scheduled | Campaign created, not yet started |
active | Campaign is running, dialling contacts |
paused | Campaign temporarily paused |
paused_out_of_range | Campaign paused (outside calling window) |
completed | Campaign finished all contacts |
cancelled | Campaign permanently cancelled |
⌘I

