跳转到主要内容
GET /api/v1/forward/channels/{channel_id} 返回 Channel 绑定关系和状态详情。

请求头

Header是否必填说明
AuthorizationBearer <PAT>

路径参数

参数类型是否必填说明
channel_idstringChannel ID,与 Channel 对象的 id 相同。

示例请求

curl -s -X GET 'https://api.qoder.com/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"
}

响应字段

字段类型说明
返回值objectChannel 对象。

错误

HTTPTypeCode触发条件
404not_found_errorchannel_not_foundChannel 不存在或当前调用方不可见。
401authentication_errorauthentication_requiredPAT 无效或已过期。

注意事项

  • binding_status 由系统维护,不能通过 Update Channel 直接修改。
  • 只有 enabled=truebinding_status=bound 时才能处理上行消息。

相关

更新 Channel

创建 Channel QR Session