Get authentication statistics
curl --request GET \ --url 'https://auth.example.com/api/admin/stats/auth?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z' \ --header 'Authorization: Bearer <token>'Returns authentication and token audit counts for a required time period, optionally filtered by client ID. Retained whole-row archives are included in supported log queries. A bounded query that cannot read its required rows returns log_query_incomplete instead of partial statistics or an empty success.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Inclusive start of the statistics period.
Inclusive end of the statistics period.
Optional client ID filter.
Responses
Section titled “ Responses ”Authentication and token audit statistics for the requested period.
object
object
object
object
Example
{ "total_attempts": 1280, "successful": 1236, "failed": 44, "success_rate": 96.56, "mfa_used": 312, "by_grant_type": { "authorization_code": { "successful": 900, "failed": 20 }, "client_credentials": { "successful": 336, "failed": 24 } }, "period": { "from": "2026-06-01T00:00:00.000Z", "to": "2026-06-02T00:00:00.000Z" }}Headers
Section titled “Headers ”Snapshot for the remote scheduled view; eventual when Pipeline visibility can lag ingestion; local_hot_only for local scheduled staging without a remote Catalog.
Tenant deliveries not yet confirmed visible. Omitted for self-service subjects. Zero does not guarantee immediate Pipeline visibility.
True only for a complete bounded snapshot query. Pipeline responses remain false; incomplete reads return 503.
Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}The retained log query is incomplete. No partial entries or statistics are returned as a successful result. Narrow the period or retry.
object
Example
{ "error": "log_query_incomplete", "complete": false}