Skip to main content
GET
/
api
/
calls
/
agent-performance
cURL
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
    }
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Query Parameters

agent_id
string
required

Agent identifier

Response

200 - application/json

Agent performance retrieved successfully

message
string
status
string
error
string
data
object