curl --request GET \
--url http://localhost:8080/api/calls/agent-performance \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>'{
"message": "Agent performance retrieved successfully",
"status": "success",
"error": null,
"data": {
"agent_id": "agent-123",
"total_calls": 50,
"completed_calls": 45,
"active_calls": 2,
"status_distribution": {
"REGISTERED": 3,
"ONGOING": 2,
"ENDED": 45
},
"direction_distribution": {
"INBOUND": 25,
"OUTBOUND": 20,
"NOT_SET": 5
},
"disconnection_reasons": {
"USER_HANGUP": 25,
"AGENT_HANGUP": 15,
"DIAL_NO_ANSWER": 3,
"SYSTEM_ERROR": 2
}
}
}Retrieves agent performance data (current behavior).
curl --request GET \
--url http://localhost:8080/api/calls/agent-performance \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>'{
"message": "Agent performance retrieved successfully",
"status": "success",
"error": null,
"data": {
"agent_id": "agent-123",
"total_calls": 50,
"completed_calls": 45,
"active_calls": 2,
"status_distribution": {
"REGISTERED": 3,
"ONGOING": 2,
"ENDED": 45
},
"direction_distribution": {
"INBOUND": 25,
"OUTBOUND": 20,
"NOT_SET": 5
},
"disconnection_reasons": {
"USER_HANGUP": 25,
"AGENT_HANGUP": 15,
"DIAL_NO_ANSWER": 3,
"SYSTEM_ERROR": 2
}
}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication
Agent identifier