Platform
Call lists
A call list is a routine whose agent talks to a list of people, one call each, within calling hours, at a pace you set, skipping anyone on your do-not-call list.
InferexAI does not dial. For each row we send your telephony the event routine.call.requested with the phone number and a one-time ws_url. Your telephony places the call and connects its audio to that ws_url, exactly as it does for any other call to your agent. The address works once and expires after 10 minutes.
How a run goes
- The list comes from the run's inputs (a CSV uploaded in the portal, or
rows or csv in the request body), or from one call to one of the agent's tools, for example "fetch today's due payments", which must answer with a JSON list of rows. Up to 5,000 rows. - Rows whose number is on your do-not-call list are skipped. So are rows with a number that cannot be read, and a number that appears again later in the same list.
- Inside the calling hours and the pacing, each row becomes a
routine.call.requested event. Pacing is also held to your API key's limit on calls at once. - When the call ends, its outcome label and fields to capture are recorded on the row, and
call.completed is sent as usual. - If nobody answers, your telephony reports it and the row is tried again after the delay you set.
Set it up
{
"kind": "call_list",
"source": "inputs",
"pacing": {"at_once": 5, "per_minute": 20},
"window": {"from": "10:00", "to": "19:00", "tz": "Asia/Kolkata"},
"retries": {"no_answer": 2, "busy": 1, "after_minutes": 60},
"approve_list": false
}
sourceinputs (rows sent with each run) or tool with "tool": "tool_name".
pacingat_once: calls going at the same time. per_minute: new calls requested a minute.
windowCalling hours, in the time zone you give. See below.
retriesno_answer and busy: how many more tries after each (0 to 5). after_minutes: wait between tries (5 to 1,440).
approve_listWhen true, the run waits until a person approves the whole list. See Approvals.Sending the rows
Each row has a phone with its country code, an optional caller_ref (your own reference, returned on every event), and variables the agent can use in its greeting and instructions.
curl -X POST https://api.inferexai.in/v1/routines/rt_8c1d2e3f4a5b/runs \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{
"rows": [
{"phone": "+919876543210", "caller_ref": "loan-5521", "variables": {"name": "Asha", "due_amount": "4,500"}},
{"phone": "+919812345678", "caller_ref": "loan-5522", "variables": {"name": "Ravi", "due_amount": "12,000"}}
]
}'
Or send the CSV itself as {"csv": "…"}; Run now in the portal does this. The first row names the columns: phone(or phone_number, number, mobile), optionally caller_ref, and every other column becomes a variable. A 10-digit number is taken as Indian. A run's inputs can be at most 32 KB, a few hundred rows; for longer lists use "source": "tool".
phone,caller_ref,name,due_amount
+919876543210,loan-5521,Asha,"4,500"
+919812345678,loan-5522,Ravi,"12,000"
What your telephony receives
{
"id": "evt_3e4f5a6b7c8d9e0f1a2b3c4d",
"type": "routine.call.requested",
"created": 1794900000,
"api_version": 2,
"data": {
"routine_id": "rt_8c1d2e3f4a5b",
"run_id": "rr_51f0a9c2d3e4",
"item_id": 1873,
"row_no": 1,
"attempt": 1,
"agent_id": "va_3f2a9c1b7d5e4f608a12",
"ws_url": "wss://api.inferexai.in/v1/realtime?token=…",
"expires_at": "2026-11-17T04:40:00+00:00",
"caller_ref": "loan-5521",
"variables": {"name": "Asha", "due_amount": "4,500"},
"phone": "+919876543210",
"phone_last4": "3210"
}
}
Verify the signature as for any webhook, place the call to phone, and connect it to ws_url before expires_at. The caller reference and variables are fixed by the event; the call cannot change them. The copy of this event kept in your event history has neither the number nor the address.
If the call cannot be connected, report it so the row is retried or closed:
curl -X POST https://api.inferexai.in/v1/routines/runs/rr_51f0a9c2d3e4/items/1873/result \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{"status": "no_answer"}'
status is no_answer, busy or failed. The key needs the routines scope and must belong to an owner, admin or developer.
Calling hours
Calls are requested only between 09:00 and 21:00 India time (Asia/Kolkata). A routine's window can narrow these hours, for example to 10:00–19:00, but never widen them; a window given in another time zone must fall inside them in summer and winter alike. Rows still waiting when the window closes wait for the next day's window. Rules on when you may call people differ by place and by purpose; you are responsible for following the ones that apply to you.
The do-not-call list
- Each organisation has one list. Every call list skips the numbers on it.
- A call that ends with the outcome label
do_not_call adds the number by itself. - Add numbers one at a time or many pasted together, and remove them, in the portal under Routines → Do-not-call list, or with the API. Numbers are shown by their last four digits only.
GET /v1/do-not-callThe list, newest first: last four digits, how each was added, when. limit and offset page it
POST /v1/do-not-callAdd numbers: {"numbers": ["+919876543210"]}, up to 1,000 at a time
DELETE /v1/do-not-callRemove numbers, given in full in the body the same way. Numbers never go in the address
Changing the list needs any role except viewer.
Rows and their status
pendingWaiting for its turn.
requestedroutine.call.requested was sent; waiting for the call to connect.
in_callThe call is going.
doneThe call ended. Its outcome label is on the row.
no_answer · busyWill be tried again if retries are left.
failedCould not be completed.
skipped_dncThe number is on your do-not-call list.
skipped_windowCalling hours ended before it could be called.
skipped_invalidThe row could not be used; the reason is in outcome.
See the rows of a run with GET /v1/routines/runs/{run_id}/items (filters: status, limit, offset; the answer also counts rows by status), or open the run in the portal.