agentTimeUsage
Description
This endpoint retrieves detailed time usage statistics for each agent, showing how much time was spent in different states such as talking, paused, available, and more. It also includes general usage averages across all agents.
URL - Method POST
https://clearnexus.croco-dial.net/goAPIv2/goDashboard/goAPI.php
Required Parameters
| Parameter | Value | Description |
| goAction | agentTimeUsage | Action to perform. |
| goUser | MyUser | API authorized user. |
| goPass | MyPass | Authorized user's password. |
| responsetype | json/xml | Format of the response (json recommended). |
Note: This endpoint uses body parameters for authentication instead of tokens or headers.
Example Request (curl)
curl -X POST https://clearnexus.croco-dial.net/goAPIv2/goDashboard/goAPI.php \
-d "goAction=getAgentTime" \
-d "goUser=MyUser" \
-d "goPass=MyPass" \
-d "responsetype=json"
Example Response (200 OK)
{
"result": "success",
"data": {
"breakdown": [
{
"user": "john.doe",
"first_login": 0,
"last_logoff": 0,
"login_time": 14.0,
"after_call": 0,
"break": 12.0,
"pausa": 0,
"avalible": 30.0,
"talk": 37.14,
"wrapup": 0,
"cust_leave": 0,
"total_calls": 25,
"pause": 15.0,
"ready": 25.0
},
{
"user": "jane.smith",
"first_login": 0,
"last_logoff": 0,
"login_time": 140,
"after_call": 0,
"break": 18.0,
"pausa": 0,
"avalible": 42.0,
"talk": 57.54,
"wrapup": 0,
"cust_leave": 2,
"total_calls": 30,
"pause": 12.5,
"ready": 30.5
}
],
"general": {
"pause": 13.75,
"ready": 27.75,
"talk": 38.0
}
}
}