消息发送接口
/waproxy/v1/wa/{wa_id}/messages请求结构同 Meta 原生接口。
请求格式:application/json
请求参数
wa_id必填号码 ID
notify_url可选,覆盖默认回执地址
请求示例
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "6283171606515",
"type": "template",
"template": {
"name": "test_001",
"language": {
"code": "en"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "98764"
}
]
}
]
}
}响应示例
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "6283171606515",
"wa_id": "6283171606515"
}
],
"messages": [
{
"id": "wamid.HBgNNjI4MTM4NTA2NDEyMRUCABEYEjQ0QjM4NjYwODQwMDQyODZEOQA=",
"message_status": "accepted"
}
]
}