Skip to main content
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));
{
  "statuses": {
    "Unknown": 123,
    "Created": 123,
    "Pending": 123,
    "Queued": 123,
    "Completed": 123,
    "Failed": 123,
    "Canceled": 123,
    "Running": 123
  }
}

Query Parameters

fromDate
string<date-time>

Filter start date

toDate
string<date-time>

Filter end date

agentId
string

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.

statuses
object

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.