根據 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時才能處理上行訊息。