获取 WABA 账户信息

请求方式

GET /whatsapp/wabaInfo HTTP/1.1
Host: https://{your-domain}/api/open/v1

请求头

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

请求参数

字段类型注释
waba_idstring否,WABA账户ID,不传则返回该团队下所有WABA

返回的结果

{
  “code”: 1,
  “msg”: “OK”,
  “data”: {
    “id”: “1234567890123456”,
    “name”: “My Business WhatsApp Account”,
    “timezone_id”: “1”,
    “message_template_namespace”: “ba30dd89_2ebd_41e4_b805_f2c05ae04cc9”,
    “account_review_status”: “APPROVED”,
    “business_verification_status”: “VERIFIED”,
    “country”: “US”,
    “ownership_type”: “SELF”,
    “primary_business_location”: “US”
  }
}

注:查询全部时,data 为以索引为 key 的对象列表,例如:

{
  “code”: 1,
  “msg”: “OK”,
  “data”: {
    “0”: {“id”: “918802267845274”, “name”: “My Business”},
    “1”: {“id”: “918802267845275”, “name”: “Another Business”}
  }
}

字段类型注释
idstringWABA 账户 ID
namestring账户名称
timezone_idstring时区 ID
message_template_namespacestring消息模板命名空间
account_review_statusstring账户审核状态
business_verification_statusstring企业认证状态
countrystring国家代码
ownership_typestring所有权类型
primary_business_locationstring主要业务所在地