Query agent records
Get the rows of an agent record for a period. To get the next page, send the same query with meta.next as pagination.pageKey. Without filters, all agents are included, also deactivated ones.
ApiKeyAuthAuthorization<token>recordId*stringThe id of an agent record
The query
application/json- body
An agent record 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
pagination?The page to fetch. If not provided, the first page is returned
includeLabels?booleanWhether references include a label. Defaults to true
One page of rows, and the keys of the previous and next pages
application/json- response
data?array<>The rows of the page. The columns a row can contain are listed under fields in the record's catalogue entry
meta*The keys of the previous and next pages, and the page size
curl -X POST 'https://dev.dixa.io/beta/intelligence/agents/records/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" } } }, "filters": [ { "attribute": "agent", "values": [ "a4f1c0b2-6d38-4e91-8f27-1b5d9c3e7a04", "c81d4e2a-95b7-4c60-a3f8-2e6a7d09b415" ], "operator": "IsOne" } ], "timezone": "Europe/Copenhagen", "pagination": { "pageLimit": 50 }, "includeLabels": true}'A working interval and an away interval. Only the away interval has a `customAwayStatus`