Skip to main content
GET
Statistics

Overview

Retrieves aggregated statistics about user events, grouped by event type. This endpoint provides a quick overview of event distribution, counts, and last occurrence timestamps, perfect for building dashboards and monitoring user activity patterns.

Endpoint

Authentication

Requires a valid API key in the Authorization header:

Query Parameters

string
Filter statistics by user identifier. If not provided, returns stats across all users in your organization.Example: ?user_id=user_12345

Response

boolean
Indicates if the request was successful
array
Array of statistics objects grouped by event type
string
The event type (e.g., β€œLOGIN_SUCCESS”, β€œTRANSFER_SUCCESS”)
number
Total number of events of this type
string
Timestamp of the most recent event of this type (ISO 8601)

Examples

Get Stats for All Users

Get Stats for Specific User

Response Example

Error Responses

401 Unauthorized

403 Forbidden

500 Internal Server Error

Use Cases

Dashboard Summary

Build a dashboard showing event distribution:

Fraud Monitoring

Monitor for suspicious activity patterns:

User Activity Report

Generate activity reports:

Analytics Metrics

Calculate key metrics:

Comparative Analysis

Compare activity across users:

Visualization Examples

Chart Data Preparation

Prepare data for charts:

Next Steps

List Events

Query individual events

Create Event

Track new events

List by Entity

Get events for specific entity

Analytics

Build analytics dashboards