Skip to main content
Identities

列出 Identity 使用的 Template

查看某个 Identity 使用过的 Template 及其 Session 统计。

GET /api/v1/forward/identities/{identity_id}/agents

请求头

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

路径参数

参数类型是否必填说明
identity_idstringForward Identity ID。

示例响应

HTTP 200 OK
{
  "data": [
    {
      "template_id": "tmpl_support",
      "template_name": "Support assistant",
      "session_count": 8,
      "last_active_at": "2026-07-14T10:30:00Z"
    }
  ]
}

响应字段

字段类型说明
dataarrayTemplate 使用统计列表。
data[].template_idstringForward Template ID。
data[].template_namestringTemplate 名称。
data[].session_countinteger该 Identity 使用该 Template 创建的 Session 数量。
data[].last_active_atstringnull

错误

HTTPTypeCode触发条件
401authentication_errorauthentication_requiredPAT 或 SAT 无效、已过期或缺失。
404not_found_error-Identity 不存在或当前调用方不可见。