Report on calls in a date range, grouped by who handled them
GET /Platform/calls/report
Report on calls in a date range, grouped by who handled them.
Groups your organization's calls by handler (each AI agent, each phone line and the people heard on it, each phone tree, voicemail), by person, by topic, by the path callers took, by day or week, and by hour of the week, with the same totals for the period just before so you can show change. Works the same whatever your routing setup: no handler kind is assumed to be first or present.
Definitions used throughout:
- reached: a handler started ringing or playing for the caller.
- answered: a person took the call. For a phone line that means it
picked up and the segment's outcome is not voicemail, no answer,
busy or failed;
picked_upalso counts pickups by the line's own phone system or voicemail, which many lines answer within a second. - time to answer: seconds from reached to a person answering. For a transfer made by an agent, reached is when the agent dialled; for a routing forward, it is when the call leg was created. When a line's own phone system answers first, this is how fast that system picked up, not how fast a person did.
- resolved: the request was completed in that segment, judged from the whole conversation.
- handed off: another handler followed.
- not answered (calls): no handler ever answered.
- outcomes and topics come from each call's analysis, written once
the call is over;
analysedsays how many calls have one.
Read-only. Filters narrow every group at once, so a page about one
handler is this report with handler_type/handler_id (or
number for a phone line) set.
Query parameters
since: datetime. Start of the range (inclusive, ISO 8601).until: datetime. End of the range (exclusive, ISO 8601); at most 92 days aftersince.handler_type: optional "Agent" or "Party" or "PhoneTree". Entity type of the handler to narrow to: Agent, PhoneTree, or Party for a person (calls where they were heard, or reached on a line that reaches only them).handler_id: optional str. Id of that handler; used together withhandler_type.number: optional str. A phone line (E.164) to narrow to.handler_kind: optional "agent" or "phone_line" or "phone_tree" or "voicemail" or "auto_response" or 2 more. Only calls with a segment of this kind, and only those segments in the handler table.topic: optional str. Only calls with this topic.direction: optional "inbound" or "outbound". Only inbound or only outbound calls.bucket: optional "day" or "week". Group the time series by day or week; defaults to week for ranges over 45 days.include_simulated: optional bool. Include simulated (test) conversations' calls.read_branch: optional str. Only one side of a live-traffic experiment: the experiment branch for calls it handled, ormainfor its control group. Unset counts every call.routing_rule: optional str. Only contacts whose first handler was chosen by this routing rule:defaultfor the default action, or the rule's position (0 is the first rule).
Returns
CallReport
since: datetime. Range start (inclusive).until: datetime. Range end (exclusive).bucket: str. day or week.timezone: str. Timezone used for buckets and hours.truncated: optional bool. True when the range had more calls than one report reads; narrow the range.totals: CallReportGroup. Totals for every call in the range.previous: CallReportGroup. The same-length range just before, for deltas.people_identified: optional float or null. Share of answered phone-line segments where at least one person was identified.by_handler: optional List[HandlerReport]. One row per handler (agent, phone line, phone tree, voicemail), most reached first.by_person: optional List[PersonReport]. One row per person heard on phone-line segments.by_path: optional List[PathReport]. The most common sequences of handlers callers went through.by_topic: optional List[CallReportGroup]. Totals per topic, most frequent first; an episode with two topics counts in both.by_channel: optional List[CallReportGroup]. Totals per channel (voice, chat, email, sms).by_touchpoint: optional List[CallReportGroup]. Totals per number, email address or chat surface the contact reached; key is Type---id.by_bucket: optional List[CallReportGroup]. Totals per day or week, in order.by_hour: optional List[HourCell]. Calls and unanswered segments per hour of the week.
Example request
curl -X GET "https://api.hilus.ai/Platform/calls/report" \
-H "Authorization: Bearer $HILUS_API_KEY"