Call performance: totals, per agent, per day
GET
https://server.heyrik.com/api/v1/analyticsHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 4
Fields documented for this operation. See the request example for placement and structure.
daysnumberWindow size. Default 30.
fromstringISO start (use with until) instead of days.
untilstringISO end.
agency_idstringNarrow to one agent.
Response
Explore the example values. This is not a complete response schema.
dataobjectExplore 5 properties
daysnumberExample 30
sincestringExample "2026-06-24T10:49:39.297Z"
totalsobjectExplore 11 properties
madenumberExample 412
liftednumberExample 388
failednumberExample 24
connectednumberExample 355
disconnectednumberExample 33
answer_ratenumberExample 0.94
avg_talk_secnumberExample 66
total_talk_secnumberExample 23430
unique_callersnumberExample 297
inboundnumberExample 210
outboundnumberExample 202
by_agentarrayExplore 1 example item
[0]objectExplore 4 properties
agency_idstringExample "agc_9f2a1c30"
namestringExample "Support Agent"
madenumberExample 210
connectednumberExample 190
by_dayarrayExplore 1 example item
[0]objectExplore 3 properties
datestringExample "2026-07-22"
madenumberExample 18
connectednumberExample 16
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
