Get attempt statistics
curl --request GET \
--url http://localhost:8787/api/v1/campaigns/{campaignId}/attempts/stats \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8787/api/v1/campaigns/{campaignId}/attempts/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8787/api/v1/campaigns/{campaignId}/attempts/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Voice Campaigns
Get attempt statistics
Retrieve status counters for all attempts in a campaign
GET
/
campaigns
/
{campaignId}
/
attempts
/
stats
Get attempt statistics
curl --request GET \
--url http://localhost:8787/api/v1/campaigns/{campaignId}/attempts/stats \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8787/api/v1/campaigns/{campaignId}/attempts/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8787/api/v1/campaigns/{campaignId}/attempts/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Returns count aggregates across all attempt statuses for a specific campaign.
Path parameters
string
required
The unique UUID of the campaign.
curl -X GET https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000/attempts/stats \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY"
import requests
response = requests.get(
"https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000/attempts/stats",
headers={"Authorization": f"Bearer {API_KEY}"},
)
print(response.json())
const response = await fetch(
"https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000/attempts/stats",
{
method: "GET",
headers: { Authorization: `Bearer ${API_KEY}` },
},
);
const data = await response.json();
console.log(data);
Response
{
"total": 52,
"pending": 98,
"dialing": 4,
"answered": 32,
"completed": 32,
"failed": 2,
"noAnswer": 10,
"busy": 4,
"cancelled": 0
}
⌘I

