获取 Identity + Template 编译后的最终运行时配置。
HTTP 200 OK
请求头
| Header | 是否必填 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer <PAT> |
路径参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
identity_id | string | 是 | Forward Identity ID。 |
template_id | string | 是 | Forward Template ID。 |
示例请求
示例响应
HTTP 200 OK
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
type | string | 固定为 effective_spec。 |
agent_effective_hash | string | Agent 部分编译结果 hash。 |
session_effective_hash | string | Session 部分编译结果 hash。 |
effective_hash | string | 完整有效配置 hash。 |
agent | object | 编译后的 Agent 配置。 |
session | object | 编译后的 Session 默认配置。 |
错误
| HTTP | Type | Code | 触发条件 |
|---|---|---|---|
| 400 | invalid_request_error | - | Effective Config 无法编译。 |
| 404 | not_found_error | - | Identity 或 Template 不存在。 |
| 422 | invalid_request_error | - | 运行时配置校验失败。 |
| 401 | - | TOKEN_INVALID | PAT 无效或已过期。 |
备注
- Identity Config 按字段级合并规则覆盖 Template 基线。
- 没有 Identity Config 时按空覆盖层处理。
- 默认 Memory Store 注入由创建 Session 流程处理。