WHATSAPP直发模板校验内容。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Type |
string |
是 |
直发内容类型。可选枚举值:
|
interactive |
| Interactive |
object |
否 |
interactive 类型消息消息体 |
|
|
any |
否 |
interactive 内容 |
{"type": "cta_url", "header": { "type": "text","text": "Order Update"}, "body": { "text": "Your order is ready."}, "action": { "name": "cta_url", "parameters": { "display_text": "View Order","url": "https://example.com" } } } |
|
| Text |
object |
否 |
文本内容消息体 |
{"text": "This is a direct send message"} |
| CustSpaceId |
string |
是 |
ISV 子客户的 SpaceId/直客客户的实例 ID |
cams-xx** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| AccessDeniedDetail |
string |
访问被拒绝详细信息。 |
None |
| RequestId |
string |
请求的 ID,用于定位日志,排查问题。 |
example |
| Message |
string |
响应信息。 |
example |
| Data |
object |
返回数据。 |
|
| Category |
string |
Whatsapp 模板分类。取值:
|
example |
| Success |
boolean |
操作是否成功。取值:
|
true |
| Code |
string |
请求状态码。
|
OK |
| Success |
boolean |
操作是否成功。取值:
|
true |
示例
正常返回示例
JSON格式
{
"AccessDeniedDetail": "None",
"RequestId": "example",
"Message": "example",
"Data": {
"Category": "example",
"Success": true
},
"Code": "OK",
"Success": true
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。