Call analytics aggregates
curl --request GET \
--url https://dashboard.ondial.ai/api/v1/analytics/calls \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dashboard.ondial.ai/api/v1/analytics/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dashboard.ondial.ai/api/v1/analytics/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"groupBy": "<string>",
"from": "<string>",
"to": "<string>",
"totals": {},
"groups": [
{}
]
}{
"error": "Invalid or inactive API key",
"reasonCode": "unauthorized"
}{
"error": "Insufficient scope",
"reasonCode": "forbidden",
"missing": [
"calls:read"
]
}Call analytics
Aggregates for calls, minutes, and credits by day, agent, campaign, or direction.
GET
/
api
/
v1
/
analytics
/
calls
Call analytics aggregates
curl --request GET \
--url https://dashboard.ondial.ai/api/v1/analytics/calls \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dashboard.ondial.ai/api/v1/analytics/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dashboard.ondial.ai/api/v1/analytics/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"groupBy": "<string>",
"from": "<string>",
"to": "<string>",
"totals": {},
"groups": [
{}
]
}{
"error": "Invalid or inactive API key",
"reasonCode": "unauthorized"
}{
"error": "Insufficient scope",
"reasonCode": "forbidden",
"missing": [
"calls:read"
]
}Requires
analytics:read (opt-in). Date range capped at 93 days.
groupBy: day | agent | campaign | direction.Authorizations
Paste only your API key (ond_live_… or ond_test_…). Do not type the word Bearer — the playground adds it.
Query Parameters
Available options:
day, agent, campaign, direction 
