Estou explorando a rota a seguir para validar se um contato existe no whatsapp, porem percebi que a resposta é a mesma para qualquer contato, mesmo numeros que nao existem existem o whatsapp a resposta é a mesma na resource. Tem alguma outra forma de usar essa rota para retornar de fato se um contato existe ou nao no whatsapp?
curl --location --request POST 'https://empresatest.http.msging.net/commands' \
--header 'Content-Type: application/json' \
--header 'Authorization: Key xxxxxxxxxxxxxxxxxxxxxxxxxxx==' \
--header 'Cookie: __cf_bm=yI.fEwiQb6ugWsh9JnrBm5JOYBEsdbxjgirKvKgxo8c-1728666246-1.0.1.1-v7UkUoI0cJsj6aUt2Tu2XeptF..WxehPHPNrbGfYRUHcOw0ErRadDGwLCHeydetgbXkext_hN9YIOKMjdqoXFw' \
--data-raw '{
"id":"routerrecursos1",
"to": "[email protected]",
"method": "get",
"uri": "lime://wa.gw.msging.net/accounts/+551799999999"
}'
Resposta
{
"type": "application/vnd.lime.account+json",
"resource": {
"alternativeAccount": "[email protected]",
"identity": "[email protected]",
"phoneNumber": "+551799999999",
"source": "WhatsApp"
},
"method": "get",
"status": "success",
"id": "routerrecursos1",
"from": "[email protected]/#msging-gateway-whatsapp-km24c",
"to": "[email protected]/!msging-server-jjtfk-2wo7qa7k",
"metadata": {
"traceparent": "00-0997d6fd053a0b7078584f991821830c-d9c001fc505625b9-01",
"#command.uri": "lime://wa.gw.msging.net/accounts/+551799999999"
}
}