Get data of a specific metric (aggregated)
Security
ApiKeyAuth
POST
- GetMetricDataInputCsidFilter
- GetMetricDataInputPeriodFilter
- Example0
- Example1
curl -i -X POST \
https://dev.dixa.io/v1/analytics/metrics \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"id": "closed_conversations",
"periodFilter": {
"value": {
"_type": "PreviousWeek"
},
"_type": "Preset"
},
"filters": [
{
"attribute": "channel",
"values": [
"email"
]
}
],
"aggregations": [
"Count"
],
"timezone": "Europe/Copenhagen"
}'Response
- AgentPresenceDurationValue
- DoubleAggregateValue
- LongAggregateValue
{ "data": { "id": "closed_conversations", "aggregates": [ … ] } }