列出 Channel
curl --request GET \
--url https://agent-api.bigmodel.cn/api/agent/forward/v0/channels \
--header 'Authorization: Bearer <token>' \
--header 'zai-beta: <zai-beta>' \
--header 'zai-version: <zai-version>'import requests
url = "https://agent-api.bigmodel.cn/api/agent/forward/v0/channels"
headers = {
"zai-version": "<zai-version>",
"zai-beta": "<zai-beta>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'zai-version': '<zai-version>',
'zai-beta': '<zai-beta>',
Authorization: 'Bearer <token>'
}
};
fetch('https://agent-api.bigmodel.cn/api/agent/forward/v0/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://agent-api.bigmodel.cn/api/agent/forward/v0/channels")
.header("zai-version", "<zai-version>")
.header("zai-beta", "<zai-beta>")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agent-api.bigmodel.cn/api/agent/forward/v0/channels"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("zai-version", "<zai-version>")
req.Header.Add("zai-beta", "<zai-beta>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agent-api.bigmodel.cn/api/agent/forward/v0/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"zai-beta: <zai-beta>",
"zai-version: <zai-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": "channel_feishu_xxx",
"type": "channel",
"channel_type": "feishu",
"name": "飞书 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "bound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null,
"group_reply_in_thread": true
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
},
{
"id": "channel_wecom_xxx",
"type": "channel",
"channel_type": "wecom",
"name": "企业微信 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "bound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
},
{
"id": "channel_dingtalk_xxx",
"type": "channel",
"channel_type": "dingtalk",
"name": "钉钉 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "bound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null,
"card_template_id": "xxx.schema",
"card_content_key": "content"
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
},
{
"id": "channel_wechat_xxx",
"type": "channel",
"channel_type": "wechat",
"name": "个人微信 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "unbound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
}
],
"next_page": null
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "请求字段或类型不合法。",
"details": {}
},
"request_id": "req_xxx"
}{
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "账号或全局请求频率超限。",
"details": {}
},
"request_id": "req_xxx"
}Channel
列出 Channel
分页列出当前账号的四类公开 Channel,data[] 可以混合返回 Feishu、WeCom、DingTalk、WeChat。不提供渠道平台、Agent 或状态过滤。
GET
/
agent
/
forward
/
v0
/
channels
列出 Channel
curl --request GET \
--url https://agent-api.bigmodel.cn/api/agent/forward/v0/channels \
--header 'Authorization: Bearer <token>' \
--header 'zai-beta: <zai-beta>' \
--header 'zai-version: <zai-version>'import requests
url = "https://agent-api.bigmodel.cn/api/agent/forward/v0/channels"
headers = {
"zai-version": "<zai-version>",
"zai-beta": "<zai-beta>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'zai-version': '<zai-version>',
'zai-beta': '<zai-beta>',
Authorization: 'Bearer <token>'
}
};
fetch('https://agent-api.bigmodel.cn/api/agent/forward/v0/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://agent-api.bigmodel.cn/api/agent/forward/v0/channels")
.header("zai-version", "<zai-version>")
.header("zai-beta", "<zai-beta>")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agent-api.bigmodel.cn/api/agent/forward/v0/channels"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("zai-version", "<zai-version>")
req.Header.Add("zai-beta", "<zai-beta>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agent-api.bigmodel.cn/api/agent/forward/v0/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"zai-beta: <zai-beta>",
"zai-version: <zai-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": "channel_feishu_xxx",
"type": "channel",
"channel_type": "feishu",
"name": "飞书 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "bound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null,
"group_reply_in_thread": true
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
},
{
"id": "channel_wecom_xxx",
"type": "channel",
"channel_type": "wecom",
"name": "企业微信 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "bound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
},
{
"id": "channel_dingtalk_xxx",
"type": "channel",
"channel_type": "dingtalk",
"name": "钉钉 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "bound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null,
"card_template_id": "xxx.schema",
"card_content_key": "content"
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
},
{
"id": "channel_wechat_xxx",
"type": "channel",
"channel_type": "wechat",
"name": "个人微信 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "unbound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
}
],
"next_page": null
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "请求字段或类型不合法。",
"details": {}
},
"request_id": "req_xxx"
}{
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "账号或全局请求频率超限。",
"details": {}
},
"request_id": "req_xxx"
}| 参数 | 默认值 | 规则 |
|---|---|---|
limit | 20 | 整数,1–100 |
order | desc | 只允许 asc / desc |
page | 无 | 上次返回的 opaque cursor(不透明游标),不得解析或自拼 |
next_page 仅表示当前排序方向的下一页;为 null 表示没有下一页。翻页保持原排序方向。
安全响应
所有元素返回固定版本的template、绑定/连接状态、last_error 及安全 channel_config,不回显 credentials、扫码 token、平台消息 ID、内部 Session ID 或计费字段。
| 渠道 | channel_config 返回字段 |
|---|---|
| 所有渠道 | response_options、private_memory_store_enabled、group_prompt_template(微信固定 null) |
| Feishu | 另返回 group_reply_in_thread,默认 false |
| DingTalk | 另返回 card_template_id(默认 null)、card_content_key(默认 content) |
| WeCom / WeChat | 不返回飞书或钉钉专属字段 |
请求示例
curl --request GET "https://agent-api.bigmodel.cn/api/agent/forward/v0/channels" \
--header "Authorization: Bearer $ZHIPUAI_API_KEY" \
--header "zai-version: 2026-05-26" \
--header "zai-beta: managed-agents-2026-05-26" --get --data-urlencode "limit=20" --data-urlencode "order=desc"
Authorizations
标准的 HTTP Bearer 认证方式,在 API Keys 页面获取密钥。
Headers
Query Parameters
Response
请求成功。
固定 Agent 版本和渠道安全配置。不回显 credentials、扫码 token、平台消息 ID、内部 Session ID 或计费字段。
- 飞书
- 企业微信
- 钉钉
- 个人微信
Show child attributes
Show child attributes
Example:
{
"id": "channel_feishu_xxx",
"type": "channel",
"channel_type": "feishu",
"name": "飞书 Channel xxx",
"template": {
"agent": {
"type": "agent",
"id": "agent_xxx",
"version": 3
},
"environment_id": "env_xxx",
"vault_ids": [],
"file_ids": [],
"memory_stores": []
},
"enabled": true,
"binding_status": "bound",
"connection_status": "disconnected",
"channel_config": {
"response_options": {
"include_tool_calls": false,
"include_process": false,
"card_output": true
},
"private_memory_store_enabled": false,
"group_prompt_template": null,
"group_reply_in_thread": true
},
"last_error": null,
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:00:00.000Z"
}
Was this page helpful?