Skip to main content
GET
/
api
/
analytics
/
calls
/
daily
Get Daily Calls
curl --request GET \
  --url https://api.example.com/api/analytics/calls/daily
{
  "success": true,
  "data": {
    "period": {},
    "granularity": "<string>",
    "daily": [
      {
        "date": "<string>",
        "calls": 123,
        "cost_credits": 123,
        "total_duration_seconds": 123
      }
    ]
  }
}
Provides an array of metrics grouped by time interval (either days or minutes depending on your parameters). This is ideal for generating line charts of call volume and duration.

Query Parameters

start_date
string
Start date in YYYY-MM-DD format. Defaults to 30 days ago.
end_date
string
End date in YYYY-MM-DD format. Defaults to today.
start_datetime
string
Start exact time in ISO 8601 format (e.g. 2024-03-01T14:30:00Z). Changes the granularity of the time-series points to minute.
end_datetime
string
End exact time in ISO 8601 format.
agent_id
string
Filter the metrics to only include calls for a specific agent.

Response

success
boolean
Indicates whether the request was successful.
data
object