You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用WhatsApp Cloud API发送通话权限模板时遇错误138013求助

WhatsApp Business Cloud API错误代码138013问题解析

错误信息

{
    "error": {
        "message": "(#138013) Business-initiated calling is not available",
        "type": "OAuthException",
        "code": 138013,
        "error_data": {
            "messaging_product": "whatsapp",
            "details": "Business initiated calls not available for for this account."
        },
        "fbtrace_id": "ATTrg5q8Xi1Yh8VkfYI482r"
    }
}

触发错误的请求代码

const response = await fetch('https://graph.facebook.com/v20.0/<PHONE_NUMBER_ID>/messages', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${config.token}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    messaging_product: 'whatsapp',
    recipient_type: 'individual',
    to: userGuest,
    type: 'interactive',
    interactive: {
      type: 'call_permission_request',
      action: {
        name: 'call_permission_request',
      },
      body: {
        text: 'We would like to call you.',
      },
    },
  }),
});

问题解答

错误代码138013明确说明你的账户无法使用企业发起通话功能,要启用该功能必须满足以下条件:

  • 账户资质:必须是完成Meta商业验证的正式WhatsApp商业账户,测试账户、普通商业账户不具备使用权限。
  • 权限申请:企业发起通话属于进阶功能,需要主动通过Meta Business Manager提交开通申请,申请时可能需要提供业务场景说明、合规证明等材料。
  • 号码要求:绑定的电话号码必须是Meta官方验证的商业号码,个人号码或未验证的测试号无法触发该功能。
  • 地区限制:该功能目前仅在部分地区开放,若你的账户所属地区未覆盖,也会出现此错误。

不少开发者都遇到过这个问题,解决核心是先确认账户是否符合资质,再提交功能开通申请。

内容的提问来源于stack exchange,提问作者Camilo Lozada

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 03:07:34