Get call statistics
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/calls/statistics/statuses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://blackbox.dasha.ai/api/v1/calls/statistics/statuses \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/calls/statistics/statuses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"statuses": {
"Unknown": 123,
"Created": 123,
"Pending": 123,
"Queued": 123,
"Completed": 123,
"Failed": 123,
"Canceled": 123,
"Running": 123
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Get call statistics
Retrieves aggregated call statistics grouped by status. Combines data from both the active queue and historical records to provide complete metrics.
GET
/
api
/
v1
/
calls
/
statistics
/
statuses
Get call statistics
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/calls/statistics/statuses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://blackbox.dasha.ai/api/v1/calls/statistics/statuses \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/calls/statistics/statuses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"statuses": {
"Unknown": 123,
"Created": 123,
"Pending": 123,
"Queued": 123,
"Completed": 123,
"Failed": 123,
"Canceled": 123,
"Running": 123
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Query Parameters
Filter start date
Filter end date
Filter by agent
Response
Returns call statistics successfully
Call statistics aggregated by status. Provides a breakdown of call volumes across different states, useful for monitoring call queue health, completion rates, and identifying issues with failed or pending calls.
Count of calls in each status. Keys are CallStatus values (Created, Pending, Queued, Running, Completed, Failed, Canceled) and values are the number of calls in that status. Useful for dashboards, monitoring alerts, and understanding call processing bottlenecks.
Show child attributes
Show child attributes
Was this page helpful?