Analytics API
Retrieve aggregated metrics and performance data for your AI agents.
Get Agent Metrics
GET
/analytics/agents/{agent_id}Description
Fetches aggregated performance data for a specific agent over a given time period.
Permissions
Requires Admin or Manager role.
Query Parameters
start_date(ISO 8601 string) - Required. The beginning of the reporting period.end_date(ISO 8601 string) - Required. The end of the reporting period.
Response
{
"agent_id": "agt_112233",
"period": {
"start": "2026-07-01T00:00:00Z",
"end": "2026-07-31T23:59:59Z"
},
"metrics": {
"total_calls": 1450,
"success_rate_percentage": 82.5,
"average_duration_seconds": 110,
"total_appointments_booked": 340
}
}