Breached password detection is a critical component of secure applications.    Read the white paper

FusionAuth logo
FusionAuth logo
  • Features
    FusionAuth Reactor

    FusionAuth Reactor is a powerful suite of features developed to extend FusionAuth's core functionality.

    • Flexible Architecture   Flexible Architecture
    • Auth the Way You Want It   Auth the Way You Want It
    • Security & Compliance   Security & Compliance
    • Ultimate Password Control   Ultimate Password Control
    • Customizable User Experience   Customizable User Experience
    • Advanced Registration Forms   Advanced Registration Forms
    • Built for Devs   Built for Devs
    • User Management & Reporting   User Management & Reporting
    • Scalability   Scalability
    • Single Sign-on   Single Sign-on
    • Breached Password Detection   Breached Password Detection
    • Connectors   Connectors
    • FusionAuth Reactor   FusionAuth Reactor
  • Pricing
    Cloud Pricing

    Let us host, monitor, manage, and maintain your deployments in your own private cloud.

    SEE PRICING cloud pricing   See FusionAuth Cloud Pricing
    Editions Pricing

    A powerful set of features with available support that extends FusionAuth's core functionality.

    SEE PRICING edition pricing   See FusionAuth Edition Pricing
    Editions + Cloud

    FusionAuth will handle everything so you can get back to building something awesome.

    GET STARTED Get started
  • Docs
  • Downloads
  • Resources
    FusionAuth Resources
    • Upgrade from SaaS
    • Upgrade from Open Source
    • Upgrade from Home Grown
    • Blog   Blog
    • Forum   Forum
    • Community & Support   Community & Support
    • Customer & Partners   Customers & Partners
    • Video & Podcasts   Videos & Podcasts
    • Getting Started   Getting Started
  • Expert Advice
    Expert Advice for Developers

    Learn everything you need to know about authentication, authorization, identity, and access management from our team of industry experts.

    • Authentication   Authentication
    • CIAM   CIAM
    • Identity Basics   Identity Basics
    • OAuth   OAuth
    • Security   Security
    • Tokens   Tokens
    • Dev Tools   Dev Tools
  • Account
Navigate to...
  • Welcome
  • Getting Started
  • 5-Minute Setup Guide
  • Reactor
  • Core Concepts
    • Overview
    • Users
    • Roles
    • Groups
    • Registrations
    • Applications
    • Tenants
    • Identity Providers
    • Authentication and Authorization
    • Integration Points
    • Roadmap
  • Installation Guide
    • Overview
    • System Requirements
    • Server Layout
    • Cluster
    • Docker
    • Fast Path
    • Kickstart™
    • Homebrew
    • Packages
    • Database
    • FusionAuth App
    • FusionAuth Search
    • Securing
    • Upgrading
  • APIs
    • Overview
    • Authentication
    • Errors
    • Actioning Users
    • Applications
    • Audit Logs
    • Connectors
      • Overview
      • Generic
      • LDAP
    • Consent
    • Emails
    • Event Logs
    • Families
    • Forms
    • Form Fields
    • Groups
    • Identity Providers
      • Overview
      • Apple
      • Facebook
      • Google
      • HYPR
      • LinkedIn
      • Twitter
      • OpenID Connect
      • SAML v2
      • External JWT
    • Integrations
    • JWT
    • Keys
    • Lambdas
    • Login
    • Passwordless
    • Registrations
    • Reports
    • System
    • Tenants
    • Themes
    • Two Factor
    • Users
    • User Actions
    • User Action Reasons
    • User Comments
    • Webhooks
  • Client Libraries
    • Overview
    • Dart
    • Go
    • Java
    • JavaScript
    • .NET Core
    • Node
    • PHP
    • Python
    • Ruby
    • Typescript
  • Themes
    • Overview
    • Localization
    • Examples
  • Email & Templates
    • Overview
    • Configure Email
    • Email Templates
  • Events & Webhooks
    • Overview
    • Events
    • Writing a Webhook
    • Securing Webhooks
  • Example Apps
    • Overview
    • Go
    • Java
    • JavaScript
    • .NET Core
    • PHP
    • Python
    • Ruby
  • Lambdas
    • Overview
    • Apple Reconcile
    • External JWT Reconcile
    • Facebook Reconcile
    • Google Reconcile
    • HYPR Reconcile
    • JWT Populate
    • LDAP Connector Reconcile
    • LinkedIn Reconcile
    • OpenID Connect Reconcile
    • SAML v2 Populate
    • SAML v2 Reconcile
    • Twitter Reconcile
  • Identity Providers
    • Overview
    • Apple
    • Facebook
    • Google
    • HYPR
    • LinkedIn
    • Twitter
    • OpenID Connect
      • Overview
      • Azure AD
      • Github
      • Discord
    • SAML v2
      • Overview
      • ADFS
    • External JWT
      • Overview
      • Example
  • Connectors
    • Overview
    • Generic Connector
    • LDAP Connector
    • FusionAuth Connector
  • Integrations
    • Overview
    • CleanSpeak
    • Kafka
    • Twilio
  • OpenID Connect & OAuth 2.0
    • Overview
    • Endpoints
    • Tokens
  • SAML v2 IdP
    • Overview
    • Google
    • Zendesk
  • Plugins
    • Writing a Plugin
    • Password Encryptors
  • Guides
    • Overview
    • Advanced Registration Forms
    • Breached Password Detection
    • Migration
    • Passwordless
    • Securing Your APIs
    • Silent Mode
    • Single Sign-on
  • Tutorials
    • Overview
    • Setup Wizard & First Login
    • Register/Login a User
    • Migrate Users
    • JSON Web Tokens
    • Authentication Tokens
    • Start and Stop FusionAuth
    • Switch Search Engines
    • User Account Lockout
    • Two Factor
  • Reference
    • CORS
    • Configuration
    • Data Types
    • Known Limitations
    • Password Encryptors
  • Release Notes
  • Troubleshooting

Report APIs

Overview

This page contains the APIs for retrieving the reports available in FusionAuth. Here are the APIs:

  • Generate Daily Active Users Report

  • Generate Login Report

  • Generate Monthly Active Users Report

  • Generate Registration Report

  • Generate Totals Report

Generate Daily Active Users Report

This report retrieves the number of daily active users for a given application or across all applications. You must specify a date range for the report.

Request

Generates the daily active users report

URI

GET /api/report/daily-active-user?start={start}&end={end}&applicationId={applicationId}

Request Parameters

applicationId [UUID] Optional

A specific application to query for. If not provided a "Global" (across all applications) daily active users report will be returned.

end [Long] Required

The end of the query range. This is an instant but it is truncated to days in the report timezone (which is set in the system settings).

start [Long] Required

The start of the query range. This is an instant but it is truncated to days in the report timezone (which is set in the system settings).

Response

The response for this API contains the generated daily active users report.

Table 1. Response Codes
Code Description

200

The request was successful. The response will contain a JSON body.

400

The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors.

401

You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication.

404

The object you requested doesn’t exist. The response will be empty.

500

There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty.

503

The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body.

Response Body

dailyActiveUsers Array

The list of daily active users counts.

dailyActiveUsers[x].interval [Integer]

The interval for this count. The interval values for the daily active users report are the number of days since Epoch UTC shifted to the report timezone.

dailyActiveUsers[x].count [Integer]

The number of daily active users for this count.

total [Integer]

The total (sum) of each count across the query range.

Example Response JSON
{
  "total": 30,
  "dailyActiveUsers": [
    {
      "interval": 16739,
      "count": 10
    },
    {
      "interval": 16740,
      "count": 10
    },
    {
      "interval": 16741,
      "count": 10
    }
  ]
}

Generate Login Report

This report retrieves the number of logins for a given application or across all applications. You must specify a date range for the report. The report is always generated in hours. if you want to calculate daily logins, you’ll need to roll up the results in the response.

Request

Generates the logins report

URI

GET /api/report/login?start={start}&end={end}&applicationId={applicationId}

Generates the logins report for an individual user by username or email address

URI

GET /api/report/login?start={start}&end={end}&applicationId={applicationId}&loginId={loginId}

Generates the logins report for an individual user by unique Id

URI

GET /api/report/login?start={start}&end={end}&applicationId={applicationId}&userId={userId}

Request Parameters

applicationId [UUID] Optional

A specific application to query for. If not provided a "Global" (across all applications) logins report will be returned.

end [Long] Required

The end of the query range. This is an instant but it is truncated to hours in the report timezone (which is set in the system settings).

start [Long] Required

The start of the query range. This is an instant but it is truncated to hours in the report timezone (which is set in the system settings).

loginId [String] Optional Available since 1.4.0

When this parameter is provided it will reduce the scope of the report to a single user with the requested email or username specified by this parameter.

This parameter is mutually exclusive with userId, if both are provided, the loginId will take precedence.

userId [UUID] Optional Available since 1.4.0

When this parameter is provided it will reduce the scope of the report to a single user with the requested unique Id.

This parameter is mutually exclusive with loginId, if both are provided, the loginId will take precedence.

Response

The response for this API contains the generated logins report.

Table 2. Response Codes
Code Description

200

The request was successful. The response will contain a JSON body.

400

The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors.

401

You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication.

404

The object you requested doesn’t exist. The response will be empty.

500

There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty.

503

The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body.

Response Body

hourlyCounts Array

The list of logins counts.

hourlyCounts[x].interval [Integer]

The interval for this count. The interval values for the logins report are the number of hours since Epoch UTC shifted to the report timezone.

hourlyCounts[x].count [Integer]

The number of logins for this count.

total [Integer]

The total (sum) of each count across the query range.

Example Response JSON
{
  "total": 100,
  "hourlyCounts": [
    {
      "interval": 401824,
      "count": 60
    },
    {
      "interval": 401825,
      "count": 40
    }
  ]
}

Generate Monthly Active Users Report

This report retrieves the number of monthly active users for a given application or across all applications. You must specify a date range for the report. The report is always generated using months as the interval.

Request

Generates the monthly active users report

URI

GET /api/report/monthly-active-user?start={start}&end={end}&applicationId={applicationId}

Request Parameters

applicationId [UUID] Optional

A specific application to query for. If not provided a "Global" (across all applications) monthly active users report will be returned.

end [Long] Required

The end of the query range. This is an instant but it is truncated to months in the report timezone (which is set in the system settings).

start [Long] Required

The start of the query range. This is an instant but it is truncated to months in the report timezone (which is set in the system settings).

Response

The response for this API contains the generated monthly active users report.

Table 3. Response Codes
Code Description

200

The request was successful. The response will contain a JSON body.

400

The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors.

401

You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication.

404

The object you requested doesn’t exist. The response will be empty.

500

There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty.

503

The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body.

Response Body

monthlyActiveUsers Array

The list of monthly active users counts.

monthlyActiveUsers[x].interval [Integer]

The interval for this count. The interval values for the monthly active users report are the number of months since Epoch UTC shifted to the report timezone.

monthlyActiveUsers[x].count [Integer]

The number of monthly active users for this count.

total [Integer]

The total (sum) of each count across the query range.

Example Response JSON
{
  "total": 39,
  "monthlyActiveUsers": [
    {
      "count": 10,
      "interval": 543
    },
    {
      "count": 10,
      "interval": 544
    },
    {
      "count": 10,
      "interval": 545
    },
    {
      "count": 9,
      "interval": 546
    }
  ]
}

Generate Registration Report

This report retrieves the number of registrations for a given application or across all applications. You must specify a date range for the report. The report is always generated in hours. if you want to calculate daily registrations, you’ll need to roll up the results in the response.

Request

Generates the registrations report

URI

GET /api/report/registration?start={start}&end={end}&applicationId={applicationId}

Request Parameters

applicationId [UUID] Optional

A specific application to query for. If not provided a "Global" (across all applications) registrations report will be returned.

end [Long] Required

The end of the query range. This is an instant but it is truncated to hours in the report timezone (which is set in the system settings).

start [Long] Required

The start of the query range. This is an instant but it is truncated to hours in the report timezone (which is set in the system settings).

Response

The response for this API contains the generated registrations report.

Table 4. Response Codes
Code Description

200

The request was successful. The response will contain a JSON body.

400

The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors.

401

You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication.

404

The object you requested doesn’t exist. The response will be empty.

500

There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty.

503

The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body.

Response Body

hourlyCounts Array

The list of registrations counts.

hourlyCounts[x].interval [Integer]

The interval for this count. The interval values for the registrations report are the number of hours since Epoch UTC shifted to the report timezone.

hourlyCounts[x].count [Integer]

The number of registrations for this count.

total [Integer]

The total (sum) of each count across the query range.

Example Response JSON
{
  "total": 100,
  "hourlyCounts": [
    {
      "interval": 401824,
      "count": 60
    },
    {
      "interval": 401825,
      "count": 40
    }
  ]
}

Generate Totals Report

The Report Totals API is used to retrieve the number users currently registered and how many login requests have been serviced by FusionAuth globally as well as broken down by each Application.

Request

Generates the Totals Report

URI

GET /api/report/totals

Response

The response for this API contains the generated totals report.

Table 5. Response Codes
Code Description

200

The request was successful. The response will contain a JSON body.

400

The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors.

401

You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication.

404

The object you requested doesn’t exist. The response will be empty.

500

There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty.

503

The search index is not available or encountered an exception so the request cannot be completed. The response will contain a JSON body.

Response Body

applicationTotals Map<UUID,Object>

A map where the key is the Id of the Application and the value is an object that contains the totals for that Application.

applicationTotals[id].logins [Integer]

The total number of logins (all time) for the Application.

applicationTotals[id].registrations [Integer]

The current number of registrations for the Application. This doesn’t include registrations for user’s that have been deleted from FusionAuth.

applicationTotals[id].totalRegistrations [Integer]

The total number of registrations (all time) for the Application.

globalRegistrations [Integer]

The current number of registered users. This value is incremented each time a new user is added to FusionAuth, and this value is decremented when a user is deleted from FusionAuth.

totalGlobalRegistrations [Integer]

The total number of registrations (all time). When a user is removed from FusionAuth this number is not decremented.

Example Response JSON
{
  "applicationTotals": {
    "00000000-0000-0000-0000-000000000000": {
      "logins": 20,
      "registrations": 10,
      "totalRegistrations": 10
    },
    "00000000-0000-0000-0000-000000000001": {
      "logins": 20,
      "registrations": 10,
      "totalRegistrations": 10
    },
    "00000000-0000-0000-0000-000000000002": {
      "logins": 20,
      "registrations": 10,
      "totalRegistrations": 10
    },
    "00000000-0000-0000-0000-000000000003": {
      "logins": 20,
      "registrations": 10,
      "totalRegistrations": 10
    },
    "00000000-0000-0000-0000-000000000004": {
      "logins": 20,
      "registrations": 10,
      "totalRegistrations": 10
    }
  },
  "globalRegistrations": 10,
  "totalGlobalRegistrations": 10
}

Feedback

How helpful was this page?

See a problem?

File an issue in our docs repo

Quick Links

  • Download
  • Cloud Pricing
  • Editions Pricing
  • Contact Us
  • Jobs (come work with us)
  • My Account

Resources

  • Docs
  • Blog
  • Community & Support
  • Upgrade from SaaS
  • Upgrade from Homegrown
  • Upgrade from Open Source

Everything Else

  • Privacy Policy
  • Product Privacy Policy
  • License
  • License FAQ
  • Enterprise Sales FAQ
  • Security (contact, bug bounty, etc)
  • Technical Support

Connect with Us

logo
Subscribe for Updates
We only send dev friendly newsletters. No marketing fluff!
© 2021 FusionAuth