Example: max concurrency per day over a date range.
curl -X POST 'https://api.sulus.ai/analytics' \
-H 'Authorization: Bearer $CORE_SYSTEM_API_KEY' \
-H 'Content-Type: application/json' \
--data-raw '{
"queries": [{
"name": "Number of Concurrent Calls",
"table": "subscription",
"timeRange": {
"start": "2026-06-16T18:30:00.000Z",
"end": "2026-07-17T05:31:10.184Z",
"step": "day"
},
"operations": [{
"operation": "max",
"column": "concurrency",
"alias": "concurrency"
}]
}]
}'
The response is an array of AnalyticsQueryResult objects, one per query in your request, each containing the matching name, the evaluated timeRange, and a result array of grouped values:
[{
"name": "Number of Concurrent Calls",
"timeRange": { "start": "...", "end": "...", "step": "day", "timezone": "UTC" },
"result": [
{ "date": "2026-07-05T00:00:00.000Z", "concurrency": 0 },
{ "date": "2026-07-10T00:00:00.000Z", "concurrency": 1 }
]
}]
You can combine groupBy, groupByVariableValue, timeRange, and multiple operations in a single query to build rich, multi-dimensional reports.