List calls
GET/api/analytics/callsScope calls:read
The call log, a page at a time, newest first, with totals for everything that matches.
Each call comes with its outcome, score, summary, cost and who answered it, and stats counts every matching call, not just this page. By default the last 30 days; date_from and date_to (IST calendar days) pick a range instead. Test calls are left out unless asked for. A page holds at most 200 calls. A recording link expires: fetch the call again when you need it.
| Parameter | Type | What it is |
|---|---|---|
page | integer, at least 1, in the query | Default: 1. |
page_size | integer, 1 to 200, in the query | Default: 50. |
sort | string, in the query | By start time: newest or oldest first. Default: newest. |
days | integer, 1 to 365, in the query | The last this many days, 1 to 365. date_from overrides it. Default: 30. |
status | string, or null, in the query | The call's status, such as completed, no_answer, busy or failed. |
classification | string, or null, in the query | Lead classification: hot, warm or cold. |
agent_id | string, or null, in the query | Calls answered by this AI agent. |
team_id | string, or null, in the query | Calls answered by this AI team. |
contact_id | string, or null, in the query | Calls with this contact. |
direction | string, or null, in the query | inbound or outbound. |
campaign_id | string, or null, in the query | Calls this campaign placed. |
disposition | string, or null, in the query | Calls with this outcome key. |
initiator | string, or null, in the query | What started the call, comma-separated: manual,campaign,web,inbound,workflow,workspace,test,api,callback |
missed | boolean, or null, in the query | true: calls where nobody spoke to the customer (not answered, a machine, or a failed attempt); false: the others. |
search | string, or null, in the query | Text to find in the contact's name, a number on the call, or the summary. |
date_from | string (date), or null, in the query | IST calendar day, YYYY-MM-DD. Beats days. |
date_to | string (date), or null, in the query | IST calendar day, inclusive. |
campaign_only | boolean, in the query | Only calls a campaign placed. Default: false. |
did | string, or null, in the query | Comma-separated: your own numbers. Matches every stored spelling of each line (+91…, 91…, 0…, national). |
handover | one of: yes, no, answered, missed, not_rung, or null, in the query | Handed to a person: yes, no, answered (someone came on), missed (someone was rung, nobody came on) or not_rung (nobody was rung: outside the hours). |
handover_user | string (uuid), or null, in the query | Only hand-overs this staff member answered. |
answered_by | one of: agent, team, staff, or null, in the query | Any AI agent working alone, any AI team, or staff (a person's own call from the Workspace, no AI on it). |
staff_user | string (uuid), or null, in the query | Calls this staff member took: hand-overs they answered and calls they dialled from the Workspace. |
ids | string, or null, in the query | Comma-separated call ids (at most 500): the rows someone selected. |
desk_id | string (uuid), or null, in the query | Calls attributed to this desk: to or from one of its numbers, or handed over through an 'A desk' step and taken by someone on it. |
channel | one of: phone, web, or null, in the query | What carried the call: phone (a phone line) or web (in a browser). With direction=inbound, web is the website widget's calls. |
hide_test | boolean, in the query | Leave out test calls (the default, as on Home and Analytics). initiator=test shows them regardless. Default: true. |
scored | one of: yes, no, or null, in the query | Whether the call has a score (Call Scoring's coverage). |
qa | one of: graded, not_graded, pass, review, fail, disputed, or null, in the query | Call QA: graded, not_graded, or by the call's QA band (the worst of its grades: pass, review, fail), or disputed (a grade with an open dispute). |
mode | one of: ai, power, or null, in the query | Campaign mode: power (calls a power-dialer campaign placed for your staff) or ai (every other call). |
insights | one of: none, read, or null, in the query | Conversation insights: none (connected, 15 seconds or longer, with a transcript, not read yet: what Intelligence counts as unread) or read. |
call_class | one of: ai, human, hybrid, or null, in the query | Who worked the call: ai (the AI alone), human (people only) or hybrid (the AI, then a person who came on). |
| Field | Type | What it is |
|---|---|---|
totalrequired | integer | — |
pagerequired | integer | — |
page_sizerequired | integer | — |
itemsrequired | list of objects | — |
items[].idrequired | string (uuid) | — |
items[].direction | string, or null | inbound or outbound. |
items[].initiator | string, or null | What started the call: manual, campaign, web, inbound, workflow, workspace, test, api or callback. Null on older calls. |
items[].status | string, or null | — |
items[].started_at | string (date-time), or null | — |
items[].duration_sec | integer, or null | — |
items[].billed_minutes | number, or null | — |
items[].classification | string, or null | Lead classification: hot, warm or cold. |
items[].disposition | string, or null | The call's outcome key. |
items[].score | number, or null | Lead score, 0 to 100. |
items[].sentiment | string, or null | — |
items[].summary | string, or null | — |
items[].cost | number, or null | What the call cost in all, in rupees. |
items[].languages_used | list of string, or null | — |
items[].agent_id | string (uuid), or null | — |
items[].agent_name | string, or null | — |
items[].team_id | string (uuid), or null | — |
items[].team_name | string, or null | — |
items[].answered_by | string, or null | The name of the agent, team or person who took the call. |
items[].placed_by | string, or null | The person who placed the call, when a person did. |
items[].campaign_id | string (uuid), or null | — |
items[].campaign_name | string, or null | — |
items[].contact_id | string (uuid), or null | Null when there is no contact, or it was deleted. |
items[].contact_deleted | boolean | Default: false. |
items[].contact_name | string, or null | — |
items[].contact_phone | string, or null | — |
items[].did | string, or null | Your own number on the call. |
items[].has_recording | boolean | Default: false. |
items[].recording_url | string, or null | A link to play the recording. It expires: fetch it when you need it. |
items[].missed | boolean | Nobody spoke to the customer: not answered, a machine, or a failed attempt. Default: false. |
items[].disposed_by | string, or null | Who set the outcome. |
items[].callback_requested | boolean | Default: false. |
items[].callback_time | string, or null | — |
items[].handover | string, or null | Handed to a person: answered, missed or not_rung; null if never. |
items[].qa | object, or null | The call's quality grade; null when it was never graded. |
statsrequired | object | — |
stats.totalrequired | integer | Calls matching the filters, across every page. |
stats.completedrequired | integer | Of those, calls someone picked up. |
stats.talk_minutesrequired | integer | — |
stats.total_cost | number, or null | What those calls cost in all, in rupees. |
| Code | When |
|---|---|
401 | The token is missing, unknown or revoked, or its workspace was deleted. |
402 | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
403 | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
422 | A field is missing or not in the form this endpoint takes. detail says which, and why. |
429 | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |
curl "https://aicallstudio.com/api/analytics/calls?page_size=50&days=30" \
-H "Authorization: Bearer mtc_YOUR_TOKEN"