Get Cohort Dimensions
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/v4/cohort/dimensions \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/v4/cohort/dimensions"
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/cohort/dimensions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reserved": [
{
"path": "platform_analysis",
"key": "sentiment",
"label": "Sentiment",
"type": "string",
"values": [
"positive",
"neutral",
"negative"
]
}
],
"client_analysis": [
{
"path": "client_analysis",
"key": "ptp_obtained",
"label": "PTP obtained",
"type": "boolean"
},
{
"path": "client_analysis",
"key": "disposition",
"label": "Disposition",
"type": "string"
}
]
}{
"message": "invalid channel(s): sms"
}{
"message": "Failed to fetch cohort dimensions!"
}Get Cohort Dimensions
List the fields you can slice call analytics by: built-in fields such as sentiment, and the Advanced Analysis variables configured on your agent.
GET
/
analytics
/
v4
/
cohort
/
dimensions
Get Cohort Dimensions
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/v4/cohort/dimensions \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/v4/cohort/dimensions"
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/cohort/dimensions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reserved": [
{
"path": "platform_analysis",
"key": "sentiment",
"label": "Sentiment",
"type": "string",
"values": [
"positive",
"neutral",
"negative"
]
}
],
"client_analysis": [
{
"path": "client_analysis",
"key": "ptp_obtained",
"label": "PTP obtained",
"type": "boolean"
},
{
"path": "client_analysis",
"key": "disposition",
"label": "Disposition",
"type": "string"
}
]
}{
"message": "invalid channel(s): sms"
}{
"message": "Failed to fetch cohort dimensions!"
}Start here to build a cohort view. Pass a dimension’s
path and key to Get cohort values for its values, or to Get cohort breakdown for metrics per value.
Notes
- Dimensions come from
agent_version_id, elseagent_id, else the agent that runsbulk_list_id. - Number fields are returned only with
include_numeric=true, because they can’t be grouped. - The goal variable appears as an ordinary Boolean field.
Errors
400: an ID is malformed, orsub_workspace_idwas sent from a workspace that isn’t a primary workspace.401:X-API-KEYis missing or invalid.
Query Parameters
Was this page helpful?