Channel
创建微信扫码会话
Changed on创建个人微信扫码会话。Body 只能为空或 {},其他内容返回 400。成功返回 201;不能给非 WeChat Channel 创建二维码,返回 409。
post/agent/forward/v0/channels/{channelId}/qr-sessions
Request
- Base URLhttps://agent-api.bigmodel.cn/api
- AuthHTTP bearer
Path parameters
channelIdstring required
Example:channel_wechat_xxx
当前账号的 WeChat 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。
Request body
object required
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"
}Changes
- info
endpoint added
- info