Call performance: totals, per agent, per day

GEThttps://server.heyrik.com/api/v1/analytics

Headers

AuthorizationstringRequired

Use Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.

Get your API key

Parameters 4

Fields documented for this operation. See the request example for placement and structure.

daysnumber

Window size. Default 30.

fromstring

ISO start (use with until) instead of days.

untilstring

ISO end.

agency_idstring

Narrow to one agent.

Response

Explore the example values. This is not a complete response schema.

dataobject
Explore 5 properties
daysnumber

Example 30

sincestring

Example "2026-06-24T10:49:39.297Z"

totalsobject
Explore 11 properties
madenumber

Example 412

liftednumber

Example 388

failednumber

Example 24

connectednumber

Example 355

disconnectednumber

Example 33

answer_ratenumber

Example 0.94

avg_talk_secnumber

Example 66

total_talk_secnumber

Example 23430

unique_callersnumber

Example 297

inboundnumber

Example 210

outboundnumber

Example 202

by_agentarray
Explore 1 example item
[0]object
Explore 4 properties
agency_idstring

Example "agc_9f2a1c30"

namestring

Example "Support Agent"

madenumber

Example 210

connectednumber

Example 190

by_dayarray
Explore 1 example item
[0]object
Explore 3 properties
datestring

Example "2026-07-22"

madenumber

Example 18

connectednumber

Example 16

Error reference
GET/analytics
cURL
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 } ]
  }
}

Illustrative examples · No live request is sent

Docs

Build sophisticated voice experiences with HeyRik.

© 2026 HeyRik · Support