Skip to main content
Identities

获取 Identity 统计

获取当前账号的 Identity 汇总统计。

GET /api/v1/forward/identities/stats

请求头

Header是否必填说明
AuthorizationBearer <PAT 或 SAT>

示例响应

HTTP 200 OK
{
  "total_identities": 12,
  "active_identities": 8,
  "total_agents": 5,
  "total_sessions": 126
}

响应字段

字段类型说明
total_identitiesinteger当前账号的 Identity 总数。
active_identitiesinteger最近活跃的 Identity 数量。
total_agentsinteger当前账号使用过的 Template 总数。
total_sessionsinteger当前账号的 Session 总数。

错误

HTTPTypeCode触发条件
401authentication_errorauthentication_requiredPAT 或 SAT 无效、已过期或缺失。
500api_error-统计查询失败。

备注

active_identities 按最近 7 天内有活动的 Identity 统计。