How to get statistics on state transitions for all users

Hi everyone, I'm sorry if I posted in the wrong place.

I am planning to make the following API request to obtain statistics on user state transitions on GenesysCloud. By analyzing the output results of "metric" and "qualifier," I believe I can achieve this goal.

However, I am facing a problem that I cannot solve.

The API "/api/v2/analytics/users/aggregates/query" has the following limitation:

Key: aggregates.query.user.predicates.max
Description: The maximum number of users allowed in filters for user status aggregate queries.
Limit: 100

If anyone knows, please advise.

1.Is there a way to specify all users?
2.Do you know of any other APIs that can obtain statistics on user state transitions?

Thanks,Isamu

------Example API Request------
{
"filter": {
"type": "and",
"clauses": [
{
"type": "or",
"predicates": [
{
"dimension": "userId",
"value": "The specified user ID"
},
{
"dimension": "userId",
"value": "The specified user ID"
}
]
}
]
},
"metrics": [
"tSystemPresence",
"tAgentRoutingStatus",
"tOrganizationPresence"
],
"groupBy": [
"userId"
],
"granularity": "PT15M",
"interval": "2024-12-17T00:00:00.000Z/2024-12-17T23:59:59.999Z"
}
------Example API Request------

Gotta loop it.

https://developer.genesys.cloud/forum/t/getting-all-user-aggregates-from-api-v2-analytics-users-aggregates-query/24628

Hi @Eos_Rios
I’m honored to receive your comment.
Ah, I didn’t realize there was a similar post before. I apologize for that.
Thank you for your advice!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.