This endpoint lists all available metric IDs that can be used to fetch data in Get Metric Data
Dixa API (v1)
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/metrics
- https://dev.dixa.io/v1/analytics/metrics
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/metrics?pageLimit=0&pageKey=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … }, { … } ] }
Bodyapplication/jsonrequired
The available request filters and aggregations for fetching the metric data
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/metrics
- https://dev.dixa.io/v1/analytics/metrics
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Example0
- Example1
curl -i -X POST \
https://docs.dixa.io/_mock/openapi/dixa-api/v1/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
application/json
{ "data": { "id": "closed_conversations", "aggregates": [ … ] } }
Security
ApiKeyAuth
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/metrics/{metricId}
- https://dev.dixa.io/v1/analytics/metrics/{metricId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/metrics/{metricId}' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": { "id": "csat", "description": "(Number of satisfied customers (4 and 5)/ Number of survey responses) x 100 = % of satisfied customers", "filters": [ … ], "aggregations": [ … ], "relatedRecordIds": [ … ] } }
Request
Get possible values to be used with a given filter attribute. Filter attributes are not metric or record specific, so one filter attribute can be used with multiple metrics/records. When a filter value is not relevant for a specific metric/record, it is simply ignored.
Security
ApiKeyAuth
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/filter/{filterAttribute}
- https://dev.dixa.io/v1/analytics/filter/{filterAttribute}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/filter/{filterAttribute}?pageLimit=0&pageKey=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … }, { … } ] }
Request
This endpoint lists all available record IDs that can be used to fetch data in Get Metric Records Data
Security
ApiKeyAuth
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/records
- https://dev.dixa.io/v1/analytics/records
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/records?pageLimit=0&pageKey=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … }, { … } ] }
Query
Bodyapplication/jsonrequiredMaximum number of results per page. May be used in combination with pageKey to change the number of results in between page requests.
The available request filters for fetching the metric records data
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/records
- https://dev.dixa.io/v1/analytics/records
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Example0
- Example1
curl -i -X POST \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/records?pageLimit=0&pageKey=string' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"id": "closed_conversations",
"periodFilter": {
"value": {
"_type": "PreviousWeek"
},
"_type": "Preset"
},
"filters": [
{
"attribute": "initial_direction",
"values": [
"INBOUND"
]
}
],
"timezone": "Europe/Copenhagen"
}'Response
application/json
- No Value Metric Records Data Example
- Metric Records Data Example
{ "data": [ { … }, { … } ] }
Security
ApiKeyAuth
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/records/{recordId}
- https://dev.dixa.io/v1/analytics/records/{recordId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/analytics/records/{recordId}' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": { "id": "ratings", "description": "Conversation Ratings", "filters": [ … ], "relatedMetricIds": [ … ], "fieldsMetadata": [ … ] } }