Generally I use /api/v2/analytics/conversations/aggregates/query to query a queue's metrics,
Then in my DataAction in the success template use a JSON path to specify which metric I am after, and then use First From Array to convert the result from an array to a string, since I know there will only be one value.
Almost any Genesys queue or conversation API is going to be in the format of Object, array of objects, array of values
And you can absolutely still use DataActions in Genesys Architect to grab those values.
Check out this discussion to get yourself started on using the first from array velocity macro
https://developer.genesys.cloud/forum/t/how-should-i-structure-the-first-from-array-response-here/8683
Or as Breno mentioned you could use it as a JSON object, but that can be more fiddly and very little error detection / handling in place for that.
------------------------------
Anton Vroon
------------------------------