全部产品
Search
文档中心

Qoder CN 系列:获取 Channel

更新时间:Jul 15, 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 时才能处理上行消息。

相关