API reference

Calls API

6 endpoints for calls. Send your token as a Bearer header; how tokens, scopes, limits and errors work is on the API reference page.

API reference

Before you start

  • Authentication, scopes, rate limits, errors, retrying safely and paging are explained once, on the API reference.
  • Every request needs a token with the scope shown on its endpoint; without it the answer is 403.

Calls

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.

Parameters
ParameterTypeWhat it is
pageinteger, at least 1, in the queryDefault: 1.
page_sizeinteger, 1 to 200, in the queryDefault: 50.
sortstring, in the queryBy start time: newest or oldest first. Default: newest.
daysinteger, 1 to 365, in the queryThe last this many days, 1 to 365. date_from overrides it. Default: 30.
statusstring, or null, in the queryThe call's status, such as completed, no_answer, busy or failed.
classificationstring, or null, in the queryLead classification: hot, warm or cold.
agent_idstring, or null, in the queryCalls answered by this AI agent.
team_idstring, or null, in the queryCalls answered by this AI team.
contact_idstring, or null, in the queryCalls with this contact.
directionstring, or null, in the queryinbound or outbound.
campaign_idstring, or null, in the queryCalls this campaign placed.
dispositionstring, or null, in the queryCalls with this outcome key.
initiatorstring, or null, in the queryWhat started the call, comma-separated: manual,campaign,web,inbound,workflow,workspace,test,api,callback
missedboolean, or null, in the querytrue: calls where nobody spoke to the customer (not answered, a machine, or a failed attempt); false: the others.
searchstring, or null, in the queryText to find in the contact's name, a number on the call, or the summary.
date_fromstring (date), or null, in the queryIST calendar day, YYYY-MM-DD. Beats days.
date_tostring (date), or null, in the queryIST calendar day, inclusive.
campaign_onlyboolean, in the queryOnly calls a campaign placed. Default: false.
didstring, or null, in the queryComma-separated: your own numbers. Matches every stored spelling of each line (+91…, 91…, 0…, national).
handoverone of: yes, no, answered, missed, not_rung, or null, in the queryHanded 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_userstring (uuid), or null, in the queryOnly hand-overs this staff member answered.
answered_byone of: agent, team, staff, or null, in the queryAny AI agent working alone, any AI team, or staff (a person's own call from the Workspace, no AI on it).
staff_userstring (uuid), or null, in the queryCalls this staff member took: hand-overs they answered and calls they dialled from the Workspace.
idsstring, or null, in the queryComma-separated call ids (at most 500): the rows someone selected.
desk_idstring (uuid), or null, in the queryCalls 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.
channelone of: phone, web, or null, in the queryWhat carried the call: phone (a phone line) or web (in a browser). With direction=inbound, web is the website widget's calls.
hide_testboolean, in the queryLeave out test calls (the default, as on Home and Analytics). initiator=test shows them regardless. Default: true.
scoredone of: yes, no, or null, in the queryWhether the call has a score (Call Scoring's coverage).
qaone of: graded, not_graded, pass, review, fail, disputed, or null, in the queryCall 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).
modeone of: ai, power, or null, in the queryCampaign mode: power (calls a power-dialer campaign placed for your staff) or ai (every other call).
insightsone of: none, read, or null, in the queryConversation insights: none (connected, 15 seconds or longer, with a transcript, not read yet: what Intelligence counts as unread) or read.
call_classone of: ai, human, hybrid, or null, in the queryWho worked the call: ai (the AI alone), human (people only) or hybrid (the AI, then a person who came on).
Answer (200): these fields
FieldTypeWhat it is
totalrequiredinteger—
pagerequiredinteger—
page_sizerequiredinteger—
itemsrequiredlist of objects—
items[].idrequiredstring (uuid)—
items[].directionstring, or nullinbound or outbound.
items[].initiatorstring, or nullWhat started the call: manual, campaign, web, inbound, workflow, workspace, test, api or callback. Null on older calls.
items[].statusstring, or null—
items[].started_atstring (date-time), or null—
items[].duration_secinteger, or null—
items[].billed_minutesnumber, or null—
items[].classificationstring, or nullLead classification: hot, warm or cold.
items[].dispositionstring, or nullThe call's outcome key.
items[].scorenumber, or nullLead score, 0 to 100.
items[].sentimentstring, or null—
items[].summarystring, or null—
items[].costnumber, or nullWhat the call cost in all, in rupees.
items[].languages_usedlist of string, or null—
items[].agent_idstring (uuid), or null—
items[].agent_namestring, or null—
items[].team_idstring (uuid), or null—
items[].team_namestring, or null—
items[].answered_bystring, or nullThe name of the agent, team or person who took the call.
items[].placed_bystring, or nullThe person who placed the call, when a person did.
items[].campaign_idstring (uuid), or null—
items[].campaign_namestring, or null—
items[].contact_idstring (uuid), or nullNull when there is no contact, or it was deleted.
items[].contact_deletedbooleanDefault: false.
items[].contact_namestring, or null—
items[].contact_phonestring, or null—
items[].didstring, or nullYour own number on the call.
items[].has_recordingbooleanDefault: false.
items[].recording_urlstring, or nullA link to play the recording. It expires: fetch it when you need it.
items[].missedbooleanNobody spoke to the customer: not answered, a machine, or a failed attempt. Default: false.
items[].disposed_bystring, or nullWho set the outcome.
items[].callback_requestedbooleanDefault: false.
items[].callback_timestring, or null—
items[].handoverstring, or nullHanded to a person: answered, missed or not_rung; null if never.
items[].qaobject, or nullThe call's quality grade; null when it was never graded.
statsrequiredobject—
stats.totalrequiredintegerCalls matching the filters, across every page.
stats.completedrequiredintegerOf those, calls someone picked up.
stats.talk_minutesrequiredinteger—
stats.total_costnumber, or nullWhat those calls cost in all, in rupees.
Errors
CodeWhen
401The token is missing, unknown or revoked, or its workspace was deleted.
402The 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.
403The 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.
422A field is missing or not in the form this endpoint takes. detail says which, and why.
429This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.
GET /api/analytics/calls with curl
curl "https://aicallstudio.com/api/analytics/calls?page_size=50&days=30" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN"

Place a call

POST/api/calls/dialScope calls:write

Ring one number now, with an AI agent or team speaking. A real call, billed like any other.

Send phone (a 10-digit Indian mobile) or contact_id, and exactly one of agent_id or team_id. The same checks as any outbound call apply first: the plan, Do-Not-Call, the agent's calling hours and the calls-at-once limits. The answer means ringing has started, not that anyone picked up: the outcome arrives with the call.completed webhook and in the call log.

variables fills your agent's script for this person (a name, an amount, a due date): they are saved on the contact, and a number that is not a contact yet is saved as one, under name. Send an Idempotency-Key header so that a retried request never rings the person twice.

This rings real customers. Each call is billed from your wallet like any other call, at your plan's rates.

Parameters
ParameterTypeWhat it is
Idempotency-Keystring, up to 255 characters, in the headersAny unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422.
Request body (application/json)
FieldTypeWhat it is
phonestring, or nullA 10-digit Indian mobile number starting with 6 to 9, without +91. Send this or contact_id.
contact_idstring (uuid), or nullA contact to call, by id: the contact's own number is rung.
agent_idstring (uuid), or nullThe AI agent that speaks. Send this or team_id, not both.
team_idstring (uuid), or nullThe AI team that speaks. Send this or agent_id, not both.
namestring, up to 255 characters, or nullThe person's name. A number that is not a contact yet is saved as one under this name; for a known contact it is left as it is.
variablesobject, or nullValues your agent's script uses, by name: {"amount": "12,500", "due_date": "5 December"} fills {amount} and {due_date}. Up to 30, each name lower-case letters, digits and _, each value up to 500 characters. They are saved on the contact as its fields, so the next call has them too.
Answer (200): these fields
FieldTypeWhat it is
statusrequiredstringAlways dialing: the number is being rung.
phonerequiredstringThe number rung, with +91.
answererrequiredstringThe name of the agent or team that will speak.
roomrequiredstringAn id for this call attempt.
Errors
CodeWhen
401The token is missing, unknown or revoked, or its workspace was deleted.
402The 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. The plan has no calls left, or does not include this voice tier.
403The 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. The number cannot be called: on a Do-Not-Call or Do-Not-Disturb list, no consent, or outside the workspace's calling window.
404The agent, team or contact was not found, or is switched off.
409The call cannot start now: the plan's calls-at-once limit, the agent's own limit, the agent's calling hours, a draft or paused agent, or no phone line to call from.
422A field is missing or not in the form this endpoint takes. detail says which, and why.
429This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.
502The call could not be started. Nothing was rung; try again.
503Calling is halted for a moment by the platform.
POST /api/calls/dial with curl
curl -X POST "https://aicallstudio.com/api/calls/dial" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"phone":"9876543210","agent_id":"YOUR_AGENT_ID","name":"Asha Verma","variables":{"amount":"12,500","due_date":"5 December"}}'

Schedule a call-back

POST/api/v1/callbacksScope calls:write

Book an AI call to one person at a set time. A real call, billed like any other.

Send contact_id, or phone (and name) for a number that is not a contact yet, and exactly one of agent_id or team_id. When the time comes the usual checks run first: Do-Not-Call, your calling window and the agent's calling hours, and the wallet. A call-back that falls outside the hours moves to the next opening. It shows in the Workspace's call-backs list, and can be cancelled until it rings.

This rings real customers. Each call is billed from your wallet like any other call, at your plan's rates.

Parameters
ParameterTypeWhat it is
Idempotency-Keystring, up to 255 characters, in the headersAny unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422.
Request body (application/json)
FieldTypeWhat it is
contact_idstring (uuid), or nullThe contact to call back. Send this or phone.
phonestring, up to 20 characters, or nullThe number to call back, if it is not a contact yet: 8 to 15 digits, optionally starting with +. It is saved as a contact.
namestring, up to 255 characters, or nullThe person's name, for a new number.
agent_idstring (uuid), or nullThe AI agent that calls. Send this or team_id, not both.
team_idstring (uuid), or nullThe AI team that calls. Send this or agent_id, not both.
atrequiredstring (date-time)When to call, with a time zone (2026-12-01T10:30:00+05:30). In the future, at most 30 days ahead.
Answer (201): these fields
FieldTypeWhat it is
idrequiredstring (uuid)—
contact_idrequiredstring (uuid)—
atrequiredstring (date-time)—
statusrequiredstringbooked, or cancelled.
Errors
CodeWhen
401The token is missing, unknown or revoked, or its workspace was deleted.
402The 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.
403The 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. The number is on Do-Not-Call.
404The contact, agent or team was not found.
409The agent or team is a draft or paused.
422A field is missing or not in the form this endpoint takes. detail says which, and why.
429This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.
POST /api/v1/callbacks with curl
curl -X POST "https://aicallstudio.com/api/v1/callbacks" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"contact_id":"YOUR_CONTACT_ID","agent_id":"YOUR_AGENT_ID","at":"2026-12-01T10:30:00+05:30"}'

Cancel a call-back

DELETE/api/v1/callbacks/{callback_id}Scope calls:write

Cancel a booked call-back before it rings. Nobody is called.

This rings real customers. Each call is billed from your wallet like any other call, at your plan's rates.

Parameters
ParameterTypeWhat it is
callback_idrequiredstring (uuid), in the path—
Idempotency-Keystring, up to 255 characters, in the headersAny unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422.
Answer (200): these fields
FieldTypeWhat it is
idrequiredstring (uuid)—
contact_idrequiredstring (uuid)—
atrequiredstring (date-time)—
statusrequiredstringbooked, or cancelled.
Errors
CodeWhen
401The token is missing, unknown or revoked, or its workspace was deleted.
402The 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.
403The 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.
404No call-back of yours has this id.
409It already rang, or was already cancelled.
422A field is missing or not in the form this endpoint takes. detail says which, and why.
429This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.
DELETE /api/v1/callbacks/{callback_id} with curl
curl -X DELETE "https://aicallstudio.com/api/v1/callbacks/YOUR_CALLBACK_ID" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

List calls

GET/api/v1/callsScope calls:read

Your calls, newest first, a page at a time.

Each call carries its outcome, lead score and summary. For the transcript, what was captured and the recording, fetch the call by id. Test calls from the dashboard are left out. Page with cursor: pass the next_cursor of one page to get the next, until it is null.

Parameters
ParameterTypeWhat it is
statusstring, or null, in the queryOnly calls with this status, such as completed or no-answer.
directionstring, or null, in the queryinbound or outbound.
dispositionstring, or null, in the queryOnly calls with this outcome key.
campaign_idstring (uuid), or null, in the query—
agent_idstring (uuid), or null, in the query—
team_idstring (uuid), or null, in the query—
contact_idstring (uuid), or null, in the query—
roomstring, up to 128 characters, or null, in the queryThe room that placing a call answered with.
sincestring (date-time), or null, in the queryCalls that started at or after this moment (ISO 8601, with a time zone).
untilstring (date-time), or null, in the queryCalls that started before this moment.
limitinteger, 1 to 100, in the queryCalls per page. Default: 50.
cursorstring, or null, in the querynext_cursor from the previous page.
Answer (200): these fields
FieldTypeWhat it is
datarequiredlist of objects—
data[].idrequiredstring (uuid)—
data[].statusstring, or nullcompleted, no-answer, failed, voicemail or busy.
data[].directionstring, or nullinbound or outbound.
data[].initiatorstring, or nullWhat started the call: manual, campaign, web, inbound, workflow, workspace, api or callback.
data[].roomstring, or nullThe call attempt's id, the same room that placing a call answers with.
data[].started_atstring (date-time), or null—
data[].answered_atstring (date-time), or nullWhen the customer picked up; null when nobody did.
data[].ended_atstring (date-time), or null—
data[].duration_secondsinteger, or null—
data[].billed_minutesnumber, or null—
data[].dispositionstring, or nullThe call's outcome key.
data[].classificationstring, or nullLead classification: hot, warm or cold.
data[].scorenumber, or nullLead score, 0 to 100.
data[].sentimentstring, or null—
data[].summarystring, or null—
data[].contact_idstring (uuid), or null—
data[].campaign_idstring (uuid), or null—
data[].agent_idstring (uuid), or null—
data[].team_idstring (uuid), or null—
data[].from_numberstring, or null—
data[].to_numberstring, or null—
next_cursorstring, or nullPass as cursor for the next page; null on the last page.
Errors
CodeWhen
401The token is missing, unknown or revoked, or its workspace was deleted.
402The 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.
403The 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.
422A field is missing or not in the form this endpoint takes. detail says which, and why.
429This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.
GET /api/v1/calls with curl
curl "https://aicallstudio.com/api/v1/calls?limit=50" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN"

Get a call

GET/api/v1/calls/{call_id}Scope calls:read

One call with its transcript, what it captured and its outcome.

recording_url is a link to play the recording that works for a short time; it is filled only when the token has the recordings:read scope and the call was recorded. Fetch the call again for a fresh link rather than storing one.

Parameters
ParameterTypeWhat it is
call_idrequiredstring (uuid), in the path—
Answer (200): these fields
FieldTypeWhat it is
idrequiredstring (uuid)—
statusstring, or nullcompleted, no-answer, failed, voicemail or busy.
directionstring, or nullinbound or outbound.
initiatorstring, or nullWhat started the call: manual, campaign, web, inbound, workflow, workspace, api or callback.
roomstring, or nullThe call attempt's id, the same room that placing a call answers with.
started_atstring (date-time), or null—
answered_atstring (date-time), or nullWhen the customer picked up; null when nobody did.
ended_atstring (date-time), or null—
duration_secondsinteger, or null—
billed_minutesnumber, or null—
dispositionstring, or nullThe call's outcome key.
classificationstring, or nullLead classification: hot, warm or cold.
scorenumber, or nullLead score, 0 to 100.
sentimentstring, or null—
summarystring, or null—
contact_idstring (uuid), or null—
campaign_idstring (uuid), or null—
agent_idstring (uuid), or null—
team_idstring (uuid), or null—
from_numberstring, or null—
to_numberstring, or null—
disposition_labelstringThe outcome in your workspace's own words. Default: .
captured_fieldsobjectWhat the call captured, by field name: the values your agent was asked to collect, such as a promised payment date or a site-visit slot.
captured_leadobject, or nullThe lead the agent saved during the call, when it saved one.
transcriptstringThe conversation as text, one line per turn, each labelled with who spoke. Default: .
transcript_turnslist of objects—
transcript_turns[].speakerrequiredstringlead, agent, staff or supervisor.
transcript_turns[].textrequiredstring—
transcript_turns[].namestring, or nullThe person's name, when a person spoke.
handoverobject, or nullWhen the call was handed to a person: how that went.
cost_inrnumberWhat the call has cost so far, in rupees. Default: 0.
has_recordingbooleanDefault: false.
recording_urlstring, or nullA link to play the recording, valid for a short time: fetch it when you need it. Null unless the token has the recordings:read scope and the call was recorded.
recording_trackslist of objectsOne recording per speaker (the customer, the AI, a person who joined), when the call kept them. Each url follows the same rule as recording_url.
recording_tracks[].kindstring, or nullWhose voice it is: customer, ai, staff or supervisor.
recording_tracks[].labelstring, or nullWho it is, in words.
recording_tracks[].urlstring, or nullA short-lived link to play it; null without recordings:read.
recording_tracks[].missingbooleanThe file could not be found in storage. Default: false.
Errors
CodeWhen
401The token is missing, unknown or revoked, or its workspace was deleted.
402The 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.
403The 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.
404No call of yours has this id.
422A field is missing or not in the form this endpoint takes. detail says which, and why.
429This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait.
GET /api/v1/calls/{call_id} with curl
curl "https://aicallstudio.com/api/v1/calls/YOUR_CALL_ID" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN"

Put AI Call Studio on your phone lines.

Book a 30-minute walkthrough, or call us right now: +91 922 222 1378