Query AI agent records

POST
/beta/intelligence/aiagents/records/{recordId}

Get the rows of an AI agent record for a period. To get the next page, send the same query with meta.next as pagination.pageKey. Without filters, all AI agents are included, also deleted ones.

Authorization

ApiKeyAuth
headerAuthorization<token>

Path Parameters

recordId*string

The id of an AI agent record

Request Body

The query

application/json
  1. body

An AI agent record query

primaryFilter*

The period to query

filters?array<>

The filters to apply. All filters must match

timezone*string

The 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?boolean

Whether references include a label. Defaults to true

Response Body

One page of rows, and the keys of the previous and next pages

application/json
  1. 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/aiagents/records/aiAgentFeedback' \  -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": "aiAgent",      "values": [        "0b7e4c2d-5a91-4f38-b6e2-9d1c3a8f5e47"      ],      "operator": "IsOne"    }  ],  "timezone": "Europe/Copenhagen",  "pagination": {    "pageLimit": 50  },  "includeLabels": true}'
{
"data": [
{
"channel": {
"id": "Messenger",
"label": "Messenger"
},
"aiAgent": {
"id": "0b7e4c2d-5a91-4f38-b6e2-9d1c3a8f5e47",
"label": "Support assistant"
},
"submittedAt": "2026-06-20T10:42:13.208+00:00",
"tags": [
{
"id": "b3c81f6d-7a95-4e28-8c40-1f6b9d3a5e72",
"label": "refund"
}
],
"score": 1,
"responseId": "f3c9a1e7-62b4-4d8f-a5c0-8e2b7d41f693",
"feedbackType": {
"id": "Thumbs",
"label": "Thumbs"
},
"queue": {
"id": "2f9b6d51-38c4-4a72-9e15-7c8b3f6a2d90",
"label": "Support"
},
"conversationId": 8123517,
"initialDirection": {
"id": "Inbound",
"label": "Inbound"
}
},
{
"channel": {
"id": "Messenger",
"label": "Messenger"
},
"aiAgent": {
"id": "0b7e4c2d-5a91-4f38-b6e2-9d1c3a8f5e47",
"label": "Support assistant"
},
"submittedAt": "2026-06-20T11:05:47.9+00:00",
"feedbackType": {
"id": "Thumbs",
"label": "Thumbs"
},
"score": 0,
"responseId": "6a1d8e3b-07f2-4c95-b4e8-2d9f5a7c1e30",
"conversationId": 8123529,
"initialDirection": {
"id": "Inbound",
"label": "Inbound"
}
}
],
"meta": {
"pageLimit": 50
}
}

One row per rating: a thumbs up and a thumbs down. The second conversation was in no queue, so it has no `queue`