Avnology ID
API ReferenceAnalytics

Analytics

Aggregated login, signup, MFA adoption, and method-breakdown metrics for your tenant.

Analytics

AnalyticsService exposes read-only metrics over your tenant's authentication activity. Results are aggregated server-side; all endpoints are idempotent GETs.

Use it to power:

  • Custom dashboards beyond the built-in /developer/observability pages.
  • Weekly executive reports on MFA adoption and signup funnel.
  • Anomaly detection -- compare current hour's login volume against the previous day.

Base URL: https://<Domain id="api"/>

Authentication: Bearer API key with analytics:read scope, or an admin session token.

RPCs

MethodPathPurpose
GetLoginMetricsGET /v1/analytics:getLoginMetricsLogin counts + success rate over a time range
GetSignupMetricsGET /v1/analytics:getSignupMetricsSignup counts + activation funnel
GetMfaAdoptionGET /v1/analytics:getMfaAdoptionMFA enrollment breakdown by factor type
GetMethodBreakdownGET /v1/analytics:getMethodBreakdownAuth method usage (password, passkey, social, etc.)

Granularity

Time-series endpoints accept a granularity query parameter:

ValueUse when
TIME_GRANULARITY_HOURRanges under 72h
TIME_GRANULARITY_DAYRanges under 90d
TIME_GRANULARITY_WEEKQuarter-level reporting
TIME_GRANULARITY_MONTHYear-level reporting

Omit granularity to auto-select based on the range.

Data freshness

Metrics are computed from the audit event stream with a median 30s lag. Do not use these endpoints for per-request rate-limit decisions -- use RiskService.Assess for real-time checks.