A AuthMS API Wiki API Reference iam.tianv.com →

GET /admin/oauth/clients/{client_id}/stats

返回指定客户端的令牌使用统计(活跃 token 数、最后请求时间等)

OAuth 客户端管理 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
client_id path string Yes 客户端ID

Responses

StatusDescriptionSchema
200统计数据dto.ClientStatsDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证:请提供有效的 Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足:需要管理员权限gitee_com_linmes_authms_base_dto.SimpleResponse
404客户端不存在或不属于当前租户gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.ClientStatsDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.ClientStatsResponse No
message string No
timestamp string No

dto.ClientStatsResponse

OAuth客户端令牌统计信息

FieldTypeRequiredExampleConstraintsDescription
active_refresh_tokens integer No 5
active_tokens integer No 10
client_id string No client-001
last_request_at string No 2026-04-15T10:30:00Z

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No