Skip to main content
GET
获取 Channel

状态

WeChat 创建后先调用创建扫码会话,再查询扫码会话直到 confirmed,随后查询此接口确认 bound / connected。扫码或绑定完成与连接完成分别判断。 connected 只表示连接已建立;平台是否投递消息、Agent 是否成功处理以及最终文本/附件是否送达,需要分别验证。last_error 主要反映连接问题,不能单独证明某轮执行成功。

渠道专属输出

四渠道均返回 response_options、private_memory_store_enabled、group_prompt_template;WeChat 的群聊模板固定 null。仅 Feishu 返回 group_reply_in_thread,仅 DingTalk 返回 card_template_id / card_content_key。WeCom / WeChat 不返回这些专属字段。返回结构与 Create、List.data[] 和 PATCH 成功响应一致。

请求示例

不存在、已删除或不属于当前账号的 Channel 返回 404。限流规则见创建 Channel。

Authorizations

Authorization
string
header
required

标准的 HTTP Bearer 认证方式,在 API Keys 页面获取密钥。

Headers

zai-version
enum<string>
default:2026-05-26
required

Channel API v0 基础协议标识,固定为 2026-05-26。

Available options:
2026-05-26
Example:

"2026-05-26"

zai-beta
string
default:managed-agents-2026-05-26
required

可有多个逗号分隔值,但必须包含 managed-agents-2026-05-26。

Example:

"managed-agents-2026-05-26"

Path Parameters

channelId
string
required

channelId 资源标识。

Response

请求成功。

固定 Agent 版本和渠道安全配置。不回显 credentials、扫码 token、平台消息 ID、内部 Session ID 或计费字段。

id
string
required
Example:

"channel_xxx"

type
enum<string>
required
Available options:
channel
channel_type
enum<string>
required

渠道平台。

Available options:
feishu
name
string
required
Example:

"Channel xxx"

template
object
required
enabled
boolean
required

新建 Channel 固定为 true。

Example:

true

binding_status
string
required

绑定状态。WeChat 创建后为 unbound;创建扫码会话后可能为 pending,继续查询 QR 状态;手机确认后为 bound。其他渠道通常创建后为 bound。

Example:

"bound"

connection_status
enum<string>
required

异步连接状态。disconnected 尚未建立;connecting 连接中;connected 已连接;error 查看 last_error。

Available options:
disconnected,
connecting,
connected,
error
Example:

"disconnected"

channel_config
飞书 · object
required
last_error
object | null
required

最近连接错误的安全提示,正常时为 null;不能仅凭该字段判断某轮 Agent 执行是否成功。

Example:

null

created_at
string<date-time>
required

创建时间。

updated_at
string<date-time>
required

更新时间。