根据 ID 获取 Channel。
请求头
Header | 是否必填 | 说明 |
Authorization | 是 |
|
路径参数
参数 | 类型 | 是否必填 | 说明 |
| string | 是 | Channel ID,与 Channel 对象的 |
示例请求
curl -s -X GET 'https://api.qoder.com.cn/api/v1/forward/channels/channel_019eabc123' \
-H "Authorization: Bearer $QODER_PAT"
示例响应
HTTP 200 OK
{
"id": "channel_019eabc123",
"type": "channel",
"identity_id": "idn_019eabc123",
"template_id": "tmpl_support",
"channel_type": "feishu",
"name": "Support Feishu channel",
"enabled": true,
"binding_status": "bound",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_thinking": false
}
},
"created_at": "2026-06-18T10:00:00Z",
"updated_at": "2026-06-18T10:00:00Z"
}
响应字段
字段 | 类型 | 说明 |
返回值 | object | Channel 对象。 |
错误
HTTP | Type | 触发条件 |
404 |
| Channel 不存在或当前调用方不可见。 |
401 |
| PAT 无效或已过期。 |
备注
binding_status由系统维护,不能通过 Update Channel 直接修改。只有
enabled=true且binding_status=bound时才能处理上行消息。