コンテンツにスキップ

Get authentication timeline

GET
/api/admin/stats/timeline
Code sample: Shell / cURL
curl --request GET \
--url 'https://auth.example.com/api/admin/stats/timeline?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z&interval=hour&tz=UTC' \
--header 'Authorization: Bearer <token>'

Returns time-bucketed authentication success, failure, and MFA usage counts.

from
required
string format: date-time

Inclusive start of the statistics period.

to
required
string format: date-time

Inclusive end of the statistics period.

client_id
string

Optional client ID filter.

interval
string
default: day
Allowed values: hour day week

Timeline bucket size.

tz
string
default: UTC

Timezone label returned in the response.

Time-bucketed authentication statistics for the requested period.

Media type application/json
object
data
Array<object>
object
ts
string
success
integer
failed
integer
mfa_used
integer
key
additional properties
interval
string
tz
string
period
object
from
string format: date-time
to
string format: date-time
key
additional properties
key
additional properties
Example
{
"data": [
{
"ts": "2026-06-01T00:00:00.000Z",
"success": 120,
"failed": 3,
"mfa_used": 44
},
{
"ts": "2026-06-01T01:00:00.000Z",
"success": 133,
"failed": 4,
"mfa_used": 40
}
],
"interval": "hour",
"tz": "UTC",
"period": {
"from": "2026-06-01T00:00:00.000Z",
"to": "2026-06-02T00:00:00.000Z"
}
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}