Hey folks,
Trying to pull agent state history for the last 24 hours using the Reporting API v2. I’m hitting the /api/v2/analytics/users/summary endpoint, but I’m getting back an empty results array even though I know agents were active during that window.
Here’s the query payload I’m sending:
{
"interval": "P1D",
"dateFrom": "2024-05-20T12:00:00.000Z",
"dateTo": "2024-05-21T12:00:00.000Z",
"groupings": [],
"filters": [
{
"dimension": "user.id",
"type": "in",
"value": ["user-123-abc"]
}
],
"select": [
{
"dimension": "state.name"
}
]
}
The request itself succeeds with a 200 OK, no errors in the response body. I’ve double-checked the timezone conversions and the user ID is definitely correct. I’m seeing this in the US/Eastern environment.
Is there a specific delay on the state history data? Or am I missing a required filter dimension? I’ve tried adding state.id to the select array but that didn’t change anything.
Thanks for any pointers.