Get a list of Call Metrics for a Call.
Get a list of Call Metrics for a Call.
Path parameters
-
The unique SID identifier of the Call.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^CA[0-9a-fA-F]{32}$
.
Query parameters
-
The Edge of this Metric. One of
unknown_edge
,carrier_edge
,sip_edge
,sdk_edge
orclient_edge
.Values are
unknown_edge
,carrier_edge
,sip_edge
,sdk_edge
, orclient_edge
. -
The Direction of this Metric. One of
unknown
,inbound
,outbound
orboth
.Values are
unknown
,inbound
,outbound
, orboth
. -
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
GET
/v1/Voice/{CallSid}/Metrics
curl \
--request GET 'https://insights.twilio.com/v1/Voice/{CallSid}/Metrics' \
--user "username:password"
Response examples (200)
Read
{
"meta": {
"key": "metrics",
"url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Metrics?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Metrics?PageSize=50&Page=0",
"previous_page_url": null
},
"metrics": [
{
"edge": "sdk_edge",
"call_sid": "CA7569efe0253644fa4a88aa97beca3310",
"sdk_edge": {
"interval": {
"mos": {
"value": 4.39
},
"rtt": {
"value": 81
},
"jitter": {
"value": 9
},
"audio_in": {
"value": 81
},
"audio_out": {
"value": 5237
},
"packets_lost": 0,
"packets_received": 50
},
"cumulative": {
"bytes_sent": 329425,
"packets_lost": 0,
"packets_sent": 3934,
"bytes_received": 547788,
"packets_received": 3900
}
},
"sip_edge": null,
"direction": "both",
"timestamp": "2019-10-07T22:32:06Z",
"account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
"client_edge": null,
"carrier_edge": null
}
]
}
{
"meta": {
"key": "metrics",
"url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Metrics?Direction=both&Edge=sdk_edge&PageSize=5&Page=10",
"page": 10,
"page_size": 5,
"next_page_url": null,
"first_page_url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Metrics?Direction=both&Edge=sdk_edge&PageSize=5&Page=0",
"previous_page_url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Metrics?Direction=both&Edge=sdk_edge&PageSize=5&Page=9&PageToken=PT10"
},
"metrics": [
{
"edge": "sdk_edge",
"call_sid": "CA7569efe0253644fa4a88aa97beca3310",
"sdk_edge": {
"interval": {
"mos": {
"value": 4.39
},
"rtt": {
"value": 81
},
"jitter": {
"value": 9
},
"audio_in": {
"value": 81
},
"audio_out": {
"value": 5237
},
"packets_lost": 0,
"packets_received": 50
},
"cumulative": {
"bytes_sent": 329425,
"packets_lost": 0,
"packets_sent": 3934,
"bytes_received": 547788,
"packets_received": 3900
}
},
"sip_edge": null,
"direction": "both",
"timestamp": "2019-10-07T22:32:06Z",
"account_sid": "AC998c10b68cbfda9f67277f7d8f4439c9",
"client_edge": null,
"carrier_edge": null
}
]
}