Profile metrics

Retrieve and manage login metrics per profile

The profile metrics service allows tracking login history and user activity per profile.

Get login history

Retrieve the login history for a specific profile within a date range.


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <PROFILE>    profile name
# <START>      start date (epoch milliseconds)
# <END>        end date (epoch milliseconds)
curl -X GET "<CORE_HOST>/rest/metrics/profiles/<PROFILE>?start=<START>&end=<END>" \
  -H "token: <TOKEN>"

Count unique users

Retrieve the count of unique users who logged in for a specific profile within a date range.


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <PROFILE>    profile name
# <START>      start date (epoch milliseconds)
# <END>        end date (epoch milliseconds)
curl -X GET "<CORE_HOST>/rest/metrics/profiles/<PROFILE>/count?start=<START>&end=<END>" \
  -H "token: <TOKEN>"

Store login record

Record a login event for metrics tracking.


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
curl -X POST "<CORE_HOST>/rest/metrics/profiles" \
  -H "token: <TOKEN>"

Clear history

Delete login history records within a date range.


This operation permanently deletes login history records. This action cannot be undone.


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <START>      start date (epoch milliseconds)
# <END>        end date (epoch milliseconds)
curl -X DELETE "<CORE_HOST>/rest/metrics/profiles?start=<START>&end=<END>" \
  -H "token: <TOKEN>"