# Agent Summary Statistics

## <span style="color: rgb(2, 106, 73);"> **API: agent\_summary\_stats** </span>

###  **Description**

This endpoint retrieves a summary of agent activity and performance statistics over the last day. It is useful for supervisors and managers to monitor agent productivity, call handling metrics, and time distribution across various call and pause states. This returns detailed data per agent, including call counts (manual, inbound, dialer), time spent in login, pause, talk, and break statuses, as well as call outcomes and user profile information.

## 🔗 **URL**

#### https://**DOMAIN**.croco-dial.net/goAPIv2/goReports/goAPI.php

<p class="callout info align-left">**Note:** Replace `DOMAIN` with the specific domain you want to query.</p>

### **📝 Required Parameters**  


<table border="1" id="bkmrk-parameter-value-desc" style="border-collapse: collapse; width: 100%;"><colgroup> <col style="width: 23%;"></col> <col style="width: 20%;"></col> <col style="width: 57%;"></col> </colgroup><thead><tr><td>**Parameter**</td><td>**Value**</td><td>**Description**</td></tr></thead><tbody><tr><td>goAction</td><td>agent\_summary\_stats</td><td>Action to perform</td></tr><tr><td>goUser</td><td>MyUser</td><td>API authorized user.</td></tr><tr><td>goPass</td><td>MyPass</td><td>Authorized user's password.</td></tr><tr><td>responsetype</td><td>json/xml</td><td>Format of the response (`json` recommended).</td></tr></tbody></table>

**Note:** This endpoint uses body parameters for authentication instead of tokens or headers.

### **Request Examples:**

#### **GET:**

```bash
curl -X GET "https://DOMAIN.croco-dial.net/goAPIv2/goReports/goAPI.php?goAction=agent_summary_stats&goUser=MyUser&goPass=MyPass&responsetype=json"
```

#### **POST (Form Data)**

If you prefer to send the data as form parameters:

```bash
curl -X POST "https://DOMAIN.croco-dial.net/goAPIv2/goReports/goAPI.php" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "goAction=agent_summary_stats" \
  --data-urlencode "goUser=MyUser" \
  --data-urlencode "goPass=MyPass" \
  --data-urlencode "responsetype=json"

```

####  **Example Response**

```json
{
  "result": "success",
  "data": {
    "dates": "'2025-05-06' AND '2025-05-06 23:59:59'",
    "headers": [...],
    "rows": [
            {
                "USER": "user.example",
                "calls_handled": "8",
                "manual_calls": "0",
                "inbound_calls": "8",
                "dialer_calls": "0",
                "xfer_out": "0",
                "xfer_in": "0",
                "voicemail": "0",
                "denied": "0",
                "noa": "0",
                "sales": "0",
                "WIT": "0",
                "login_time": "18455",
                "pause": "8",
                "break": "853",
                "talk": "1847",
                "most_dispo": null,
                "portfolio": "AAA",
                "profile": "CUSTSERVICE"
            },
            {
                "USER": "user.example2",
                "calls_handled": "71",
                "manual_calls": "68",
                "inbound_calls": "3",
                "dialer_calls": "68",
                "xfer_out": "0",
                "xfer_in": "0",
                "voicemail": "0",
                "denied": "0",
                "noa": "0",
                "sales": "0",
                "WIT": "0",
                "login_time": "18709",
                "pause": "298",
                "break": "1877",
                "talk": "1640",
                "most_dispo": null,
                "portfolio": "BBB",
                "profile": "COLLECTIONS"
            },
        ...
      ]
  }
}
```

### **Data Fields per Agent**

<div class="_tableContainer_16hzy_1" id="bkmrk-field-description-us"><div class="_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse align-left" tabindex="-1"><table border="1" class="w-fit min-w-(--thread-content-width) align-left" data-end="3246" data-start="1862" style="width: 51.6675%; height: 611.788px; border-collapse: collapse; border-color: rgb(206, 212, 217); border-width: 1px;"><thead><tr data-end="1927" data-start="1862" style="height: 29.6887px;"><td data-col-size="sm" data-end="1880" data-start="1862" style="width: 32.9494%; height: 29.6887px; border-color: rgb(206, 212, 217);">**Field**</td><td data-col-size="sm" data-end="1927" data-start="1880" style="width: 67.0253%; height: 29.6887px; border-color: rgb(206, 212, 217);">**Description**</td></tr></thead><tbody data-end="3246" data-start="1993"><tr data-end="2058" data-start="1993" style="height: 30.6368px;"><td data-col-size="sm" data-end="2011" data-start="1993" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`USER`</td><td data-col-size="sm" data-end="2058" data-start="2011" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Agent username</td></tr><tr data-end="2124" data-start="2059" style="height: 30.6368px;"><td data-col-size="sm" data-end="2077" data-start="2059" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`calls_handled`</td><td data-col-size="sm" data-end="2124" data-start="2077" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Total number of calls handled</td></tr><tr data-end="2190" data-start="2125" style="height: 30.6368px;"><td data-col-size="sm" data-end="2143" data-start="2125" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`manual_calls`</td><td data-col-size="sm" data-end="2190" data-start="2143" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Outbound manual calls</td></tr><tr data-end="2256" data-start="2191" style="height: 30.6368px;"><td data-col-size="sm" data-end="2209" data-start="2191" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`inbound_calls`</td><td data-col-size="sm" data-end="2256" data-start="2209" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Calls received from inbound queues</td></tr><tr data-end="2322" data-start="2257" style="height: 30.6368px;"><td data-col-size="sm" data-end="2275" data-start="2257" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`dialer_calls`</td><td data-col-size="sm" data-end="2322" data-start="2275" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Calls initiated by the dialer</td></tr><tr data-end="2388" data-start="2323" style="height: 30.6368px;"><td data-col-size="sm" data-end="2341" data-start="2323" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`xfer_out`</td><td data-col-size="sm" data-end="2388" data-start="2341" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Calls transferred out by the agent</td></tr><tr data-end="2454" data-start="2389" style="height: 30.6368px;"><td data-col-size="sm" data-end="2407" data-start="2389" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`xfer_in`</td><td data-col-size="sm" data-end="2454" data-start="2407" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Calls transferred to the agent</td></tr><tr data-end="2520" data-start="2455" style="height: 30.6368px;"><td data-col-size="sm" data-end="2473" data-start="2455" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`voicemail`</td><td data-col-size="sm" data-end="2520" data-start="2473" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Voicemails left or received</td></tr><tr data-end="2586" data-start="2521" style="height: 30.6368px;"><td data-col-size="sm" data-end="2539" data-start="2521" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`denied`</td><td data-col-size="sm" data-end="2586" data-start="2539" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Calls denied or blocked</td></tr><tr data-end="2652" data-start="2587" style="height: 30.6368px;"><td data-col-size="sm" data-end="2605" data-start="2587" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`noa`</td><td data-col-size="sm" data-end="2652" data-start="2605" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Not answered (No Answer)</td></tr><tr data-end="2718" data-start="2653" style="height: 30.6368px;"><td data-col-size="sm" data-end="2671" data-start="2653" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`sales`</td><td data-col-size="sm" data-end="2718" data-start="2671" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Calls marked as sales</td></tr><tr data-end="2784" data-start="2719" style="height: 30.6368px;"><td data-col-size="sm" data-end="2737" data-start="2719" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`WIT`</td><td data-col-size="sm" data-end="2784" data-start="2737" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Calls marked with “WIT” disposition</td></tr><tr data-end="2850" data-start="2785" style="height: 30.6368px;"><td data-col-size="sm" data-end="2803" data-start="2785" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`login_time`</td><td data-col-size="sm" data-end="2850" data-start="2803" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Total login time (in seconds)</td></tr><tr data-end="2916" data-start="2851" style="height: 30.6368px;"><td data-col-size="sm" data-end="2869" data-start="2851" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`pause`</td><td data-col-size="sm" data-end="2916" data-start="2869" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Total pause time (in seconds)</td></tr><tr data-end="2982" data-start="2917" style="height: 30.6368px;"><td data-col-size="sm" data-end="2935" data-start="2917" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`break`</td><td data-col-size="sm" data-end="2982" data-start="2935" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Total break time (in seconds)</td></tr><tr data-end="3048" data-start="2983" style="height: 30.6368px;"><td data-col-size="sm" data-end="3001" data-start="2983" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`talk`</td><td data-col-size="sm" data-end="3048" data-start="3001" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Total talk time (in seconds)</td></tr><tr data-end="3114" data-start="3049" style="height: 30.6368px;"><td data-col-size="sm" data-end="3067" data-start="3049" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`most_dispo`</td><td data-col-size="sm" data-end="3114" data-start="3067" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Most frequent call disposition</td></tr><tr data-end="3180" data-start="3115" style="height: 30.6368px;"><td data-col-size="sm" data-end="3133" data-start="3115" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`portfolio`</td><td data-col-size="sm" data-end="3180" data-start="3133" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Associated portfolio name</td></tr><tr data-end="3246" data-start="3181" style="height: 30.6368px;"><td data-col-size="sm" data-end="3199" data-start="3181" style="width: 32.9494%; height: 30.6368px; border-color: rgb(206, 212, 217);">`profile`</td><td data-col-size="sm" data-end="3246" data-start="3199" style="width: 67.0253%; height: 30.6368px; border-color: rgb(206, 212, 217);">Agent's role or function profile</td></tr></tbody></table>

</div></div>