创建电话号码

请求方式

POST /whatsapp/phoneNumbers/register HTTP/1.1
Host: https://{your-domain}/api/open/v1

请求头

字段类型注释
X-API-Keystring必填,API 密钥

请求参数

{
  “waba_id”: “918802267845274”,
  “phone_number”: “+15551234567”,
  “verified_name”: “My Business”,
  “cc”: “US”,
  “migrate_phone_number”: false
}

字段类型注释
waba_idstring是,WABA 账户 ID
phone_numberstring是,电话号码
verified_namestring是,已验证名称
ccstring是,国家代码
migrate_phone_numberbool否,是否迁移电话号码,默认 false

返回的结果

{
  “code”: 1,
  “msg”: “OK”,
  “data”: {}
}

字段类型注释
codeint状态码
msgstring提示信息
dataobject返回数据