Get metric
GET
Get a metric by id.
ApiKeyAuthheader
Authorization<token>metricId*stringThe metric id
The metric
application/json- response
data*A metric and how to query it
curl -X GET 'https://dev.dixa.io/beta/intelligence/metrics/{metricId}' \ -H 'Authorization: <API token>'{}
"data": {}
"id": "closedConversations",
"name": "Closed conversations",
"category": "conversations",
"description": "The number of conversations closed in the selected period",
"deprecated": false,
"primaryFilters": [],
"period",
"conversationIds"
"filters": [],
{},
"attribute": "agent",
"aliases": [],
"agentId"
"type": "Uuid",
"operators": [],
"IsEmpty",
"IsNotEmpty",
"IsOne",
"IsNotOne"
"defaultOperator": "IsOne",
"description": "The agent (AI or human) assigned to the conversation"
{},
"attribute": "queue",
"aliases": [],
"queueId"
"type": "Uuid",
"operators": [],
"IsEmpty",
"IsNotEmpty",
"IsOne",
"IsNotOne"
"defaultOperator": "IsOne",
"description": "The queue the conversation was routed to"
{},
"attribute": "team",
"aliases": [],
"teamId"
"type": "Uuid",
"operators": [],
"IsEmpty",
"IsNotEmpty",
"IsOne",
"IsNotOne"
"defaultOperator": "IsOne",
"description": "The team the conversation was assigned to"
{},
"attribute": "tag",
"aliases": [],
"tagId"
"type": "Uuid",
"operators": [],
"IsEmpty",
"IsNotEmpty",
"IsOne",
"IsNotOne",
"IsAll"
"defaultOperator": "IsOne",
"description": "A tag attached to the conversation"
{},
"attribute": "channel",
"aliases": [],
"type": "String",
"operators": [],
"IsOne",
"IsNotOne"
"defaultOperator": "IsOne",
"description": "The channel the conversation came in on"
{},
"attribute": "initialDirection",
"aliases": [],
"direction"
"type": "String",
"operators": [],
"IsOne",
"IsNotOne"
"defaultOperator": "IsOne",
"description": "The initial direction of the conversation"
{}
"attribute": "contactPoint",
"aliases": [],
"type": "String",
"operators": [],
"IsEmpty",
"IsNotEmpty",
"IsOne",
"IsNotOne"
"defaultOperator": "IsOne",
"description": "The contact point the conversation arrived through"
"aggregates": [],
{}
"name": "count",
"type": "Integer",
"defaultIncluded": true,
"description": "The number of conversations closed in the period, including those closed by deactivated agents"
"relatedRecordIds": []
"closedConversations"
A metric that returns a count