跳转到主要内容
GET /api/v1/forward/channels 返回当前账号下的 Channel 记录。

请求头

Header是否必填说明
AuthorizationBearer <PAT>

查询参数

参数类型是否必填默认值说明
channel_typestring-wechatqqwecomfeishudingtalk 过滤。
enabledboolean-按人工启停状态过滤。
binding_statusstring-unboundboundexpired 过滤。
identity_idstring-按 Forward Identity ID 过滤。
template_idstring-按 Forward Template ID 过滤。
limitinteger20分页大小,最大 100。
after_idstring-向后翻页游标。
before_idstring-向前翻页游标。

示例请求

curl -s -X GET 'https://api.qoder.com/api/v1/forward/channels' \
  -H "Authorization: Bearer $QODER_PAT"

示例响应

HTTP 200 OK
{
  "data": [
    {
      "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"
    }
  ],
  "first_id": "channel_019eabc123",
  "last_id": "channel_019eabc123",
  "has_more": false
}

响应字段

字段类型说明
dataarray当前页的 Channel 对象。
first_idstring | null当前页第一条 Channel ID。
last_idstring | null当前页最后一条 Channel ID。
has_moreboolean是否还有更多记录。

错误

HTTPTypeCode触发条件
400invalid_request_errorinvalid_pagination分页参数不合法。
400invalid_request_errorchannel_type_unsupported渠道类型过滤条件不支持。
401authentication_errorauthentication_requiredPAT 无效或已过期。

注意事项

  • after_idbefore_id 不能同时传入。
  • 只返回当前调用方账号边界内的 Channel。

相关

创建 Channel

获取 Channel