Skip to Content
CallMitraDocs
API referenceCalls

Call performance

Totals, connect rate, conversion, outcome and channel split, calls per hour and an agent leaderboard for the last 7, 30 or 90 days, with the range before it for comparison.

GET
/api/v1/calls/performance

Totals, connect rate, conversion, outcome and channel split, calls per hour and an agent leaderboard for the last 7, 30 or 90 days, with the range before it for comparison.

Authorization

headerX-API-Key<token>

Create in the console: Settings → API & webhooks.

Query Parameters

rangeDays?integer

Days to cover, ending today: 7, 30 or 90 (any other value means 30).

Default30
Value in73090
agentId?|

Only calls of this agent.

channel?string

Only calls of this channel.

Value in"instant""bulk""inbound""browser"
includeTests?Includetests

Also count test calls placed from the console. Default false.

Defaultfalse

Response Body

OK

application/json
  1. response
byChannel*

Calls per channel: instant, bulk, inbound, browser, or unknown.

byHour*

Calls per hour of day (0 to 23, report timezone); empty hours are left out.

byOutcome*

Calls per outcome: qualified, interested, callback, not_interested, no_response, no_answer, busy, call_failed or voicemail.

funnel*
includeTests*Includetests

Whether test calls from the console are counted.

kpis*
leaderboard*array<>

Agents, most qualified calls first.

prior*
rangeDays*Rangedays

Days covered: 7, 30 or 90.

recent*
success?Success
Defaulttrue
[key: string]?any
Example Request
curl -X GET 'https://api.callmitra.ai/api/v1/calls/performance'
Example Response
{  "byChannel": {    "bulk": 230,    "inbound": 50,    "instant": 140  },  "byHour": {    "10": 64,    "11": 88,    "12": 71,    "15": 90,    "16": 107  },  "byOutcome": {    "busy": 22,    "call_failed": 40,    "callback": 22,    "interested": 41,    "no_answer": 160,    "not_interested": 95,    "qualified": 40  },  "funnel": {    "calls": 420,    "connected": 260,    "qualified": 81  },  "includeTests": false,  "kpis": {    "avgLengthSeconds": 83.5,    "calls": 420,    "connectRate": 0.62,    "conversion": 0.31,    "leads": 388,    "minutesUsed": 512,    "successRate": 0.58  },  "leaderboard": [    {      "agentId": "4f6d2c1a-9b7e-4c3d-8a21-5e0f7b9c1d23",      "calls": 300,      "connected": 190,      "minutes": 380,      "name": "Priya",      "qualified": 62    },    {      "agentId": "7c2e9a10-3b4d-4e5f-8a6b-9c0d1e2f3a4b",      "calls": 120,      "connected": 70,      "minutes": 132,      "name": "Arjun",      "qualified": 19    }  ],  "prior": {    "calls": 365,    "connectRate": 0.59,    "conversion": 0.27  },  "rangeDays": 30,  "recent": {    "last24h": 26,    "lastHour": 3,    "today": 18  },  "success": true}