Samva
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

Api referenceVoice

Get Voice Call Statistics

GET
/voice/calls/stats

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Query Parameters

startDate?string
Formatdate-time
endDate?string
Formatdate-time

Response Body

application/json

curl -X GET "https://samva.app/api/v1/voice/calls/stats"
{
  "totalCalls": 0,
  "byStatus": {
    "property1": 0,
    "property2": 0
  },
  "byDirection": {
    "property1": 0,
    "property2": 0
  },
  "byTransport": {
    "property1": 0,
    "property2": 0
  },
  "totalDurationSeconds": 0,
  "averageDurationSeconds": 0
}