REST API
How to fetch AI call analysis results and manage call workflows over REST API
The Cloud AI Supervisor module analyzes calls and shows the results in its own interface. The same data can be pulled into an external system through the REST API — for example, to display the summary and quality score in a CRM next to the customer card, and to manage the follow-up work on the call there as well.
Base path:
/pbxcore/api/v3/module-cloud-ai-supervisorAccess key
Open System → API keys and create a new key.
Grant it permissions on this module's rows: read — to fetch data, and write on the calls row — if you plan to change statuses and add notes.
Send the key with every request in the header:
Authorization: Bearer YOUR_KEYList of analyzed calls
curl -H "Authorization: Bearer YOUR_KEY" \
"https://pbx-address/pbxcore/api/v3/module-cloud-ai-supervisor/calls?period=7d&limit=50&offset=0"Main parameters:
period— a preset range:1d,7dor30d; narrow it further withdate_fromanddate_to;search— search over the number, employee, topic and status; a specific call can be found with thecall_idparameter;employee_numbers— comma-separated employee extension numbers;direction—incoming,outgoingorinternal;sentiment,quality,risk— filters by tone and by assessment and risk levels (high,medium,low);review_status—reviewedorunreviewed;workflow_status—open,in_progressorclosed;limitandoffset— paginated output (50 records by default).
Each list item contains: the id, the call identifier call_id, the date, the duration, the numbers and names of both parties, and — most importantly — the ai_result block with the summary, the sentiment, the risk score risk_score (0–100) and the quality score quality_score.
Call card
Take id from the list (or from the exact call_id lookup). Besides the list fields, the card contains the full transcript stt_detail.transcript — turns with participant roles (“customer”/“employee”) and timings — the call's workflow history workflow_history, and the quality assessment details.
Call workflow: statuses and notes
Available fields:
reviewed— mark the call as reviewed (true/false);workflow_status— the workflow status:open,in_progress,closed;assignee_id,assignee_label— the responsible person;due_at— the deadline (a Unix timestamp;0clears it);is_escalated— escalation flag;close_reason— the closing reason,note— a note (appended to the history).
The same fields can be applied to several calls at once: a PATCH /calls request with an ids array.
Team overview
Accepts the same periods as the list. The response contains the number of calls and analyzed conversations, breakdowns by day, hour and employee, the average risk, the sentiment split, contact topics, and the calls that need attention. A convenient source for your own dashboard.
Spending and health
GET /usage— how many calls were analyzed, token and money spending over a period (today,7d, …), and the remaining balance.GET /health— whether the module is running and its transcript source is available; handy for monitoring.
Last updated
Was this helpful?

