Skip to main content
GET
/
api
/
v1
/
call
/
get-metric
Get Call Metrics
curl --request GET \
  --url https://sa.dialgen.ai/api/v1/call/get-metric \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "callData": {
    "id": "call_123",
    "contactId": "contact_123",
    "agentId": "agent_456",
    "status": "COMPLETED",
    "startTime": "2024-01-15T10:00:00.000Z",
    "endTime": "2024-01-15T10:03:00.000Z",
    "duration": 180,
    "phoneNumber": "+1234567890",
    "contactName": "John Doe",
    "transcription": {},
    "summary": "Demo call completed successfully...",
    "metricJson": {
      "intent": "SALES_INQUIRY",
      "sentiment": "positive",
      "confidence": 0.95,
      "keyPoints": [
        "Interested in pricing",
        "Wants demo"
      ],
      "customerSatisfaction": 5
    }
  },
  "metricSchema": {}
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain your API key from the Dialgen API Keys dashboard at https://sa.dialgen.ai/api-keys

Query Parameters

callId
string
required

The call identifier

Example:

"call_123"

userId
string
required

The user identifier

Example:

"user_456"

agentId
string
required

The agent identifier

Example:

"agent_789"

contactId
string
required

The contact identifier

Example:

"contact_123"

Response

Call metrics retrieved successfully

success
boolean
callData
object
metricSchema
object