curl --request POST \
--url 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=xxxxx' \
--header 'Accept: */*' \
--header 'Accept-Encoding: gzip, deflate, br' \
--header 'Authorization: Beare ' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'User-Agent: PostmanRuntime-ApipostRuntime/1.1.0' \
--data '{
"scene": "X4WVPBXO",
"check_path": false,
"env_version": "develop"
} '
返回信息
{
"errcode": 48001,
"errmsg": "api unauthorized rid: 690183fd-5386c0b8-31ca65ba"
}

通常来说就是用错appid账号类型了。
平台已上线 api 智能诊断功能,后续遇到服务端接口报错的问题,可通过rid一键智能诊断,详情可查看:https://developers.weixin.qq.com/doc/oplatform/developers/basic_func/aibot.html
直达链接:https://developers.weixin.qq.com/console/devtools/debug
是不是没有过 微信认证 ?