Skip to main content
POST
/
api
/
admin
/
histories
/
charts
/
users
Get unique user count chart data
curl --request POST \
  --url https://pria.praxislxp.com/api/admin/histories/charts/users \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "granularity": "month",
  "range": -3,
  "institution": "<string>",
  "account": "<string>",
  "aggregate": false,
  "topsearch": 5
}
'
{
  "success": true,
  "data": [
    {
      "_id": {
        "granularity": "2023-11-07T05:31:56Z",
        "institution": "<string>"
      },
      "dimension": 123
    }
  ]
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
granularity
enum<string>
required

Time granularity for bucketing

Available options:
day,
week,
month,
hour
Example:

"month"

range
integer
required

Time range (negative values for past periods)

Example:

-3

institution
string

Institution ID

account
string

Account ID

aggregate
boolean

When true, aggregates across all institutions

Example:

false

topsearch
integer

Number of top institutions to return

Example:

5

Response

Successfully retrieved user count chart data

success
boolean

Indicates if the request was successful

data
object[]

Array of chart data points