> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Per-agent volume, AI vs human handling, and human-handled rate

> Per-agent response counts for the window, for up to 25 agents.

### Query parameters

**days** `integer`

### Response

`object`

**object** `string` *required*

Allowed values: `'analytics.agents'`.

**period\_days** `integer` *required*

The `days` window the counts cover.

**agents** `object[]` *required*

Maximum items: `25`.

**agents**

**object** `string` *required*

Allowed values: `'analytics.agent'`.

**agent\_id** `string (uuid)` *required*

**name** `string,null` *required*

**activated** `boolean` *required*

**total** `integer` *required*

Responses by this agent in the window.

**ai\_handled** `integer` *required*

`total` minus `human_handled`.

**human\_handled** `integer` *required*

Responses where a human took over.

**human\_handled\_rate** `number,null` *required*

`human_handled / total` to four decimals; null (not 0) when `total` is 0, so 'no traffic' is not mistaken for 'perfect'. Minimum: `0`. Maximum: `1`.

**truncated** `boolean` *required*

True when the org has more than 25 agents and only the first 25 are reported.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Per-agent response counts for the window, for up to 25 agents. |
| `401` | Missing, invalid, or expired API key. |
| `403` | The key lacks a required scope. |
| `429` | Rate limit exceeded. |

### Access

| | |
| - | - |
| Required scope | `analytics:read` |
| Rate limit | 120 requests per minute |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/responsecx.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request GET \
  --url 'https://response.stateset.com/api/v1/analytics/agents' \
  --header "Authorization: Bearer $RESPONSECX_API_KEY"
```

```json 200 theme={null}
{
  "object": "analytics.agents",
  "period_days": 1,
  "agents": [
    {
      "object": "analytics.agent",
      "agent_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "Two-Person Tent",
      "activated": true,
      "total": 102,
      "ai_handled": 1,
      "human_handled": 1,
      "human_handled_rate": 1
    }
  ],
  "truncated": true
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.