Get Connectivity Analytics
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/v4/connectivity \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/v4/connectivity"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://prod-api.ringg.ai/ca/api/v0/analytics/v4/connectivity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"connectivity": {
"total": 203,
"connected": 179,
"connectivity_pct": 88.18,
"by_retry_attempt": {
"attempt_1": 150,
"attempt_2": 21,
"attempt_3": 8
}
}
}{
"message": "invalid channel(s): sms"
}{
"message": "Failed to fetch connectivity!"
}Get Connectivity Analytics
Get how many calls connected, the connectivity percentage, and which attempt each connected call got through on, filtered by date, agent, campaign or channel.
GET
/
analytics
/
v4
/
connectivity
Get Connectivity Analytics
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/v4/connectivity \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/v4/connectivity"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://prod-api.ringg.ai/ca/api/v0/analytics/v4/connectivity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"connectivity": {
"total": 203,
"connected": 179,
"connectivity_pct": 88.18,
"by_retry_attempt": {
"attempt_1": 150,
"attempt_2": 21,
"attempt_3": 8
}
}
}{
"message": "invalid channel(s): sms"
}{
"message": "Failed to fetch connectivity!"
}Returns the data behind the Connectivity chart in Analytics. Use
by_retry_attempt to judge whether more retries are worth it: attempt_2 and later are calls that connected only after a retry.
Notes
connectivity_pctruns from0to100, rounded to two decimals, unlike the0to1rates on other analytics endpoints. It is0.0when there are no calls.totalincludes every call status, including registered, ongoing and retry calls.- For calls stopped by the campaign’s end time or retry limit, read
volume.connection_ratefrom Get volume analytics.
Errors
400: a filter is invalid, such as an unknownchannel, a malformed ID, orsub_workspace_idsent from a workspace that isn’t a primary workspace.401:X-API-KEYis missing or invalid.
Query Parameters
Was this page helpful?