获取当前账号的 Identity 汇总统计。
GET /api/v1/forward/identities/stats
请求头
| Header | 是否必填 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer <PAT 或 SAT> |
示例响应
HTTP 200 OK
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
| total_identities | integer | 当前账号的 Identity 总数。 |
| active_identities | integer | 最近活跃的 Identity 数量。 |
| total_agents | integer | 当前账号使用过的 Template 总数。 |
| total_sessions | integer | 当前账号的 Session 总数。 |
错误
| HTTP | Type | Code | 触发条件 |
|---|---|---|---|
| 401 | authentication_error | authentication_required | PAT 或 SAT 无效、已过期或缺失。 |
| 500 | api_error | - | 统计查询失败。 |
备注
active_identities 按最近 7 天内有活动的 Identity 统计。