Channel
查询微信扫码会话
查询当前账号、本 Channel 的公开微信扫码会话。成功返回 200;会话不属于当前账号或指定 Channel 时返回 404。
get/agent/forward/v0/channels/{channelId}/qr-sessions/{session_key}
Request
- Base URLhttps://agent-api.bigmodel.cn/api
- AuthHTTP bearer
Path parameters
channelIdstring required
Example:channel_wechat_xxx
当前账号的 WeChat Channel ID。
session_keystring required
Example:chqr_xxx
本 Channel 扫码会话 ID。
Headers
zai-version'2026-05-26' required
Example:2026-05-26
Channel API v0 基础协议标识,固定为 2026-05-26。
zai-betastring required
Example:managed-agents-2026-05-26
可有多个逗号分隔值,但必须包含 managed-agents-2026-05-26。
Response
扫码会话详情。
Example response
{
"type": "channel_qr_session",
"session_key": "chqr_xxx",
"channel_id": "channel_wechat_xxx",
"provider": "wechat",
"status": "confirmed",
"qr_code": null,
"expires_at": "2026-10-30T00:08:00.000Z",
"confirmed_at": "2026-10-30T00:01:00.000Z",
"created_at": "2026-10-30T00:00:00.000Z",
"updated_at": "2026-10-30T00:01:00.000Z"
}