Avnology ID
API ReferenceAnalytics

Get Login Metrics

Return aggregated login metrics for a time range.

Endpoint

GET /v1/analytics:getLoginMetrics

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

Authentication: Bearer token with analytics:read scope.

Returns per-bucket login counts, success rate, and unique identity count for the specified time range. Buckets are determined by granularity.

Query Parameters

ParameterTypeRequiredDescription
start_timeRFC 3339 timestampYesStart of the range (inclusive)
end_timeRFC 3339 timestampYesEnd of the range (exclusive)
organization_idstringNoScope to a single org
granularityenumNoTIME_GRANULARITY_HOUR / _DAY / _WEEK / _MONTH

Example

Response (200 OK)

{
  "total_logins": 12483,
  "successful_logins": 12019,
  "failed_logins": 464,
  "success_rate": 0.9628,
  "unique_identities": 3127,
  "buckets": [
    { "timestamp": "2026-04-10T00:00:00Z", "count": 1782, "success_rate": 


Errors

StatusCodeDescription
400AVNOLOGY_AUTH_902start_time or end_time invalid / missing
403AVNOLOGY_AUTH_012Token missing analytics:read scope
429AVNOLOGY_AUTH_021Rate limit exceeded

Analytics

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

Get Signup Metrics

Return aggregated signup metrics for a time range.

On this page