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));{
"statuses": {
"Unknown": 123,
"Created": 123,
"Pending": 123,
"Queued": 123,
"Completed": 123,
"Failed": 123,
"Canceled": 123,
"Running": 123
}
}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));{
"statuses": {
"Unknown": 123,
"Created": 123,
"Pending": 123,
"Queued": 123,
"Completed": 123,
"Failed": 123,
"Canceled": 123,
"Running": 123
}
}Optional start date for filtering statistics
Optional end date for filtering statistics
Optional agent ID to filter statistics
Returns call statistics by status
Response DTO for call statistics grouped by status
Dictionary containing call counts for each status
Show child attributes
Was this page helpful?