全部產品
Search
文件中心

Qoder CN 系列:擷取 Channel

更新時間:Jul 16, 2026

根據 ID 擷取 Channel。

要求標頭

Header

是否必填

說明

Authorization

Bearer <PAT>

路徑參數

參數

類型

是否必填

說明

channel_id

string

Channel ID,與 Channel 對象的 id 相同。

樣本請求

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

not_found_error

Channel 不存在或當前調用方不可見。

401

authentication_error

PAT 無效或已到期。

備忘

  • binding_status 由系統維護,不能通過 Update Channel 直接修改。

  • 只有 enabled=truebinding_status=bound 時才能處理上行訊息。

相關