Retrieve Agent and Call details
This API returns the ACW agent information and call details for the given organization and username.
Endpoint
Method: GET
URL: https://api.<region>.cloud.uniphore.com/sms/v2/supervisor/api/live/agentlist/{orgName}/{userName}?environment=<env_name>
Request
curl -X GET "https://api.<region>.cloud.uniphore.com/sms/v2/supervisor/api/live/agentlist/1/1?environment=env" -H "accept: application/json"
Path Parameters
Parameter Name | Description | Data Type | Required / Optional |
---|---|---|---|
| Name of the Organization | String | Required |
| User’s login username | String | Required |
Query Parameter
Parameter Name | Description | Data Type | Required / Optional |
---|---|---|---|
| Operating environment type. Three out-of-the-box environments are provided for each account:
| String | Optional |
Example Response
{ todayTotalCallsTillNow: 230, isOnCall: 5, totalAgent: 10, todayAverageCallDuration: 02:30, agentResponseBeans: [ conversatId: abgyhsk, agentName: Albert, agentCRMId: uni123, event: start, callDuration: 03:50, criticalAlertCount: 1 ] }
Note
The JSON lists the total number agents in this case which is 10.
Response Parameters
Response Parameter | Description |
---|---|
| Number of calls handled as of current date and time |
| Number of ACW agents on call |
| Total number of ACW agents |
| Average Call Duration as of current date and time |
| Call ID |
| ACW Agent name |
| The user ID from the client/customer database. If the audio logger provides the station-id instead of agent-id, this user ID for the ACW Agents should be the agent's station-id. |
| Indicate status whether the call has started or ended. Example: start, end |
| Duration of the ongoing call |
| Number of critical alerts notified to the ACW agent |
Response and Error Codes
Response Code | Description |
---|---|
200 | OK – The request has succeeded. |
401 | Authentication failed. This response code will be shown if any of the following scenarios occur:
|
500 | Internal server error. |