Campaigns
Campaign stats
Campaign state plus a per-contact-status breakdown.
GET
/
campaigns
/
{id}
/
stats
Campaign stats
curl --request GET \
--url https://api.verbeo.ai/v1/campaigns/{id}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/campaigns/{id}/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/campaigns/{id}/stats', 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.verbeo.ai/v1/campaigns/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.verbeo.ai/v1/campaigns/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.verbeo.ai/v1/campaigns/{id}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/campaigns/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyUse this when you need a real-time breakdown of how many contacts are pending, calling, completed, etc. For just the high-level state and aggregate counters, Get campaign is cheaper.
Path parameters
string
required
UUID of the campaign.
Request
curl "https://api.verbeo.ai/v1/campaigns/0175091d-2c3b-4aef-8c45-dbbe24f7b3ff/stats" \
-H "Authorization: Bearer YOUR_API_KEY"
const res = await fetch(
`https://api.verbeo.ai/v1/campaigns/${campaignId}/stats`,
{ headers: { Authorization: `Bearer ${process.env.VERBEO_API_KEY}` } },
);
const { data } = await res.json();
res = requests.get(
f"https://api.verbeo.ai/v1/campaigns/{campaign_id}/stats",
headers={"Authorization": f"Bearer {os.environ['VERBEO_API_KEY']}"},
)
stats = res.json()["data"]
Response
200 OK.
{
"success": true,
"data": {
"campaign_id": "0175091d-2c3b-4aef-8c45-dbbe24f7b3ff",
"campaign_name": "Q2 Sales Outreach",
"status": "running",
"total_contacts": 250,
"completed_calls": 41,
"successful_calls": 38,
"failed_calls": 3,
"contact_status_breakdown": {
"pending": 209,
"calling": 0,
"completed": 38,
"failed": 3,
"retry_scheduled": 0,
"cancelled": 0
},
"started_at": "2026-05-04T15:00:00.000Z",
"business_hours": null,
"completed_at": null,
"scheduled_at": null,
"max_retries": 2,
"retry_intervals": [5, 30],
"created_at": "2026-05-04T14:55:12.000Z",
"updated_at": "2026-05-04T15:30:01.000Z"
}
}
contact_status_breakdown always includes the keys above, even when their count is zero. Unknown statuses (e.g. introduced server-side after this version of the docs) will appear as additional keys.
Errors
CAMPAIGN_NOT_FOUND (404), STATS_FAILED (500). See Campaigns overview and Errors.
Was this page helpful?
⌘I
Campaign stats
curl --request GET \
--url https://api.verbeo.ai/v1/campaigns/{id}/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/campaigns/{id}/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/campaigns/{id}/stats', 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.verbeo.ai/v1/campaigns/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.verbeo.ai/v1/campaigns/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.verbeo.ai/v1/campaigns/{id}/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/campaigns/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body