# Call performance: totals, per agent, per day

> GET /analytics. HeyRik API parameters and documented request and response examples.

Source: https://www.heyrik.com/docs/api-reference/analytics/get-analytics-call-performance-totals-per-agent-per-day

GET https://server.heyrik.com/api/v1/analytics

## Headers

Authorization: Bearer $HEYRIK_API_KEY (required). Keep your key on your server.

## Parameters

- days (number): Window size. Default 30.
- from (string): ISO start (use with until) instead of days.
- until (string): ISO end.
- agency_id (string): Narrow to one agent.

## Notes

answer_rate is connected ÷ made. Everything is scoped to your account.

## Request example

```sh
curl "https://server.heyrik.com/api/v1/analytics?days=30" \
  -H "Authorization: Bearer $HEYRIK_API_KEY"
```

## Response example

```json
{
  "data": {
    "days": 30,
    "since": "2026-06-24T10:49:39.297Z",
    "totals": {
      "made": 412, "lifted": 388, "failed": 24,
      "connected": 355, "disconnected": 33,
      "answer_rate": 0.94,
      "avg_talk_sec": 66, "total_talk_sec": 23430,
      "unique_callers": 297,
      "inbound": 210, "outbound": 202
    },
    "by_agent": [
      { "agency_id": "agc_9f2a1c30", "name": "Support Agent", "made": 210, "connected": 190 }
    ],
    "by_day": [ { "date": "2026-07-22", "made": 18, "connected": 16 } ]
  }
}
```
