Get client statistics
GET
/api/admin/stats/clients/{id}
Code sample: Shell / cURL
curl --request GET \ --url 'https://auth.example.com/api/admin/stats/clients/example?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z' \ --header 'Authorization: Bearer <token>'Returns token, authentication, and usage statistics for a specific client in the requested period.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Query Parameters
Section titled “Query Parameters ” from
required
string format: date-time
Inclusive start of the statistics period.
to
required
string format: date-time
Inclusive end of the statistics period.
Responses
Section titled “ Responses ”Per-client authentication, token, and usage statistics.
Media type application/json
object
client_id
string
client_name
string | null
tokens
object
active_access_tokens
integer
active_refresh_tokens
integer
issued_today
integer
revoked_today
integer
key
additional properties
auth
object
total_attempts
integer
successful
integer
failed
integer
success_rate
number
key
additional properties
usage
object
api_calls_today
integer
api_calls_this_month
integer
unique_users
integer
last_activity
string | null format: date-time
key
additional properties
period
object
from
string format: date-time
to
string format: date-time
key
additional properties
key
additional properties
Example
{ "client_id": "client_123", "client_name": "Admin Console", "tokens": { "active_access_tokens": 18, "active_refresh_tokens": 18, "issued_today": 240, "revoked_today": 3 }, "auth": { "total_attempts": 260, "successful": 252, "failed": 8, "success_rate": 96.92 }, "usage": { "api_calls_today": 860, "api_calls_this_month": 24000, "unique_users": 85, "last_activity": "2026-06-01T23:58:00.000Z" }, "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"}