Query agent metric
Get the value of an agent metric for a period. All aggregates of the metric are returned. If nothing matches, count is 0 and the other aggregates are null, except presence durations, which are 0. Deactivated agents are included.
ApiKeyAuthAuthorization<token>metricId*stringThe id of an agent metric
The query
application/json- body
An agent metric query
primaryFilter*The period to query
filters?array<>The filters to apply. All filters must match
timezone*stringThe timezone presets and days are evaluated in, such as Europe/Copenhagen
The metric values, keyed by aggregate name
application/json- response
data*The metric values, keyed by the name of each of the metric's aggregates. All aggregates are included. If nothing matches, count is 0, min, max, sum, average, stdDev and percentage are null, and an object value is filled with zeros
curl -X POST 'https://dev.dixa.io/beta/intelligence/agents/metrics/agentPresenceDuration' \ -H 'Authorization: <API token>' \ -H 'Content-Type: application/json' \ -d '{ "primaryFilter": { "period": { "interval": { "from": "2026-06-01T00:00:00Z", "to": "2026-07-01T00:00:00Z" } } }, "timezone": "Europe/Copenhagen"}'Time working, per channel the agent was available on, and time away, per away status