Skip to main content
GET
/
api
/
v1
/
calls
/
statistics
/
statuses
Get call statistics grouped by status
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>

Optional start date for filtering statistics

toDate
string<date-time>

Optional end date for filtering statistics

agentId
string

Optional agent ID to filter statistics

Response

Returns call statistics by status

Response DTO for call statistics grouped by status

statuses
object

Dictionary containing call counts for each status