Get event analytics
const url = 'http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/insights/events';
const options = {
method: 'GET',
headers: {'API-Version': '2026-06-01.beta', 'API-Key': '<API-Key>'}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}curl --request GET \
--url http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/insights/events \
--header 'API-Key: <API-Key>' \
--header 'API-Version: 2026-06-01.beta'Returns user activity analytics (MAU/WAU/DAU), login trends, protocol breakdown, registration statistics, and machine-to-machine authentication analytics from the events store.
Note: active_users counts use fixed 30/7/1-day rolling windows and are not
affected by start_time/end_time.
When neither start_time nor end_time is provided the window covers the last 30 days.
Required scope: clusters:insights:read
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Inclusive start time (ISO 8601). Defaults to 30 days ago when omitted.
Inclusive end time (ISO 8601). Defaults to the current time when omitted.
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”The request has succeeded.
User activity and login event analytics from the events store.
object
Active user counts across fixed rolling time windows.
object
Distinct users who logged in during the last 30 days.
Distinct users who logged in during the last 7 days.
Distinct users who logged in during the last 24 hours.
Overall login success rate (0–1).
Realms ranked by login volume.
Activity summary for a single realm.
object
object
Authentication event count broken down by protocol.
object
Fraction of total login events for this protocol (0–1).
User registration analytics.
object
Ratio of successful registrations to total attempts (0–1).
object
Machine-to-machine (client credentials grant) authentication analytics.
object
Distinct clients that authenticated during the last 30 days.
Distinct clients that authenticated during the last 7 days.
Distinct clients that authenticated during the last 24 hours.
Ratio of successful client authentications to total attempts (0–1).
Ratio of successful client registrations to total attempts (0–1).
Activity summary for a single service-account client.
object
object
Example
{
"protocol_stats": [
{
"protocol": "openid-connect"
}
]
}The server could not understand the request due to invalid syntax.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Access is unauthorized.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Access is forbidden.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}The server cannot find the requested resource.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Client error
object
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"errors": [
{
"field": "example",
"detail": "example",
"code": "example",
"value": "example"
}
]
}Client error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Headers
Section titled “Headers”Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}