Asternic API
The
REST API
of Asternic Call Center Stats PRO
allows remote and automated access to all reports and statistics that are normally viewed in the web user interface. All information is delivered in JSON format, making it easy to integrate with external platforms, custom dashboards, or control systems. This API
is designed for Asterisk
systems with call queue modules and is widely used in solutions based on Issabel Contact Center
. Main Features
The
API
is organized by entities, each focused on a specific type of data or function: 1. Reports
Allows you to obtain the most used reports in the system, including:
- Answered calls by agent, by queue, by event, by DID.
- Detail of answered calls.
- Analysis by wait times or distribution.
- Available filters: by date, time, agent, queue.
Example query
bash
/stats/rest/index.php?entity=reports/answered_calls_by_queue&start=YYYY-MM-DD&end=YYYY-MM-DD
2. Call
- Returns the complete detail of a specific call (events like ENTERQUEUE, CONNECT, COMPLETEAGENT, etc.), using the call's uniqueid.
- Useful for integrations with CRMs, recordings, call flow analysis.
3. Queues
- Allows you to query the
queues
configured in the system, their names, and identifiers. - You can also get the details of a specific
queue
.
4. Agents
- Lists all
agents
registered in the system. - It is also possible to obtain detailed information by
agent
.
5. Realtime
- Provides real-time information about the current state of the system:
- Calls on hold.
- Agent status (busy, paused, disconnected).
- Live metrics by
queue
: average wait time, abandoned calls, abandonment rate, etc.
- Ideal for dashboards that require frequent updates (every 5-10 seconds).
5. Search
- Allows you to perform full searches in the database, using parameters such as dates, agent, queue, events, etc.
- Returns matching records with details of times, recordings, and call flow.
Security
- Requires authentication using username/password defined in the
Asternic
panel. - Access to data is limited according to the authenticated user's permissions.
What is this API for?
- Integrate
call center
statistics into external platforms. - Automate internal reports or analysis.
- Display information in real-time custom dashboards.
- Access historical call records with all their events and times.
- You can find more detailed information about this
API
in the Call Data API section.
If there is any incorrect or incomplete information, or additional information needs to be generated, please write to isscc@issabel.com.