GET /api/v1/forward/templates/{template_id}
返回完整 Template 对象,包括 Agent 配置和 Session 默认配置。
请求头
| Header | 是否必填 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer <PAT> |
路径参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| template_id | string | 是 | Forward Template ID。 |
示例请求
示例响应
HTTP 200 OK响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
| type | string | 固定为 template。 |
| id | string | Template ID。 |
| name | string | Template 名称。 |
| status | string | Template 状态。 |
| model | string | 模型标识。 |
| metadata | object | 自定义元数据。 |
错误
| HTTP | Type | Code | 触发条件 |
|---|---|---|---|
| 404 | not_found_error | - | Template 不存在或当前调用方不可见。 |
| 401 | authentication_error | authentication_required | PAT 无效或已过期。 |
| 403 | permission_error | - | 当前调用方无权访问该资源。 |
注意事项
- 归档后的 Template 仍可通过详情接口查询。
- 响应不额外暴露运行时私有字段。