X-GEHUB-TOKEN 请在后台「客户端」创建或重置凭据后复制(不是 Client Secret 本身),仅通过 HTTPS 发送。节点由客户端默认绑定决定,appId 为兼容占位,不用于选择节点。写操作必须提供新的 Idempotency-Key(8–128 位字母、数字、点、下划线、冒号或短横线);同一操作重试必须复用原值。危险操作另需 X-Confirm-Risk: destructive。首次微信登录和回调配置请在后台完成。 客户端需启用对应模块权限。
{ "appId": "{{appid}}", "toUserName": "{{toUserName}}", "myAccountType": 3, "myUserName": "{{userName}}" }
curl --location 'https://wxapi.xiaoyu.fan/gehub/v2/api/finder/getMsgSessionId' \ --header 'X-GEHUB-TOKEN: {{gehub-token}}' \ --header 'Content-Type: application/json' \ --data '{ "appId": "", "toUserName": "{{toUserName}}", "myAccountType": 3, "myUserName": "{{userName}}" }'
{ "ret": 200, "msg": "操作成功", "data": { "toUsername": "v2_060000231003b20faec8c6e18f10c7d6c903ec3db0776955d3d97c6b329d6aa58693bcdb7ad1@finder", "sessionId": "3eab1521919d4531c83a166faa56cf844737c4a295b127f3edcb68ed4375d049@findermsg", "rejectMsg": 0, "enableAction": 1, "msgExtInfo": "CAIQAw==" } }