Get totals chart data for histories
curl --request POST \
--url https://pria.praxislxp.com/api/admin/histories/charts/totals \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"range": -3,
"dimension": "count",
"institution": "<string>",
"account": "<string>",
"granularity": "month",
"aggregate": false,
"topsearch": 5
}
'{
"success": true,
"data": [
{
"_id": {
"institution": "<string>"
},
"dimension": 123
}
]
}Admin Histories
Get totals chart data for histories
Optimized endpoint for total/summary charts (pie, donut, radialBar, radar, polarArea). No time bucketing — returns aggregated totals per institution sorted by value. Top-N handled entirely in MongoDB via sort+limit.
POST
/
api
/
admin
/
histories
/
charts
/
totals
Get totals chart data for histories
curl --request POST \
--url https://pria.praxislxp.com/api/admin/histories/charts/totals \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"range": -3,
"dimension": "count",
"institution": "<string>",
"account": "<string>",
"granularity": "month",
"aggregate": false,
"topsearch": 5
}
'{
"success": true,
"data": [
{
"_id": {
"institution": "<string>"
},
"dimension": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
JWT token passed in x-access-token header
Body
application/json
Time range (negative values for past periods)
Example:
-3
Metric to aggregate
Available options:
count, credits, usage, cached, price Example:
"count"
Institution ID
Account ID
Used only for date range calculation (dayFactor)
Available options:
day, week, month, hour Example:
"month"
When true, aggregates across all institutions
Example:
false
Number of top institutions to return
Example:
5
Was this page helpful?
⌘I