getAgentStatus
Description
This endpoint retrieves the current status of agents in the system, including how many are connected, paused, ready, in a call, or offline.
URL - Method: POST
https://domain.croco-dial.net/goAPIv2/goDashboard/goAPI.php
Body Parameters
| Parameter | Value | Description |
| goAction | getAgentStatus | Action to perform. This parameter specifies the exact operation the API should execute. |
| goUser | MyUser | Authorized username. |
| goPass | MyPass | Authorized user's password. |
| responsetype | json/xml | Expected response format. |
Note: This endpoint uses body parameters for authentication instead of tokens or headers.
Example Request (curl)
curl -X POST https://domain.croco-dial.net/goAPIv2/goDashboard/goAPI.php \
-d "goAction=getAgentStatus" \
-d "goUser=Username" \
-d "goPass=Password" \
-d "responsetype=json"
Example Response (200 OK)
{
"result": "success",
"data": {
"total_live_agents": 61,
"paused_agents": 9,
"ready_agents": 24,
"incall_agents": 28,
"offline_agents": 42,
"total_active_agents": 102
}
}