请求方式
GET /whatsapp/wabaInfo HTTP/1.1
Host: https://{your-domain}/api/open/v1
请求头
| 字段 | 类型 | 注释 |
| X-API-Key | string | 必填,API 密钥 |
请求参数
| 字段 | 类型 | 注释 |
| waba_id | string | 否,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”}
}
}
| 字段 | 类型 | 注释 |
| id | string | WABA 账户 ID |
| name | string | 账户名称 |
| timezone_id | string | 时区 ID |
| message_template_namespace | string | 消息模板命名空间 |
| account_review_status | string | 账户审核状态 |
| business_verification_status | string | 企业认证状态 |
| country | string | 国家代码 |
| ownership_type | string | 所有权类型 |
| primary_business_location | string | 主要业务所在地 |