Wazone check if a phone number is on Whatsapp

This is how to check if a number is registered on Whatsapp or not (GET):
https://api.mydomain.com/isonwa?receiver=phone_number_you_want_to_check&sender=sender_phone_number&token=sender_token

This is how to check if a number is registered on Whatsapp or not (POST):
Please use the POST send message in Rest API menu, just change the
$nodeurl = ‘https://api.mydomain.com/isonwa’;
$data = [
‘receiver’ => ‘phone_number_you_want_to_check’,
‘sender’ => ‘sender_phone_number’,
‘token’ => ‘sender_token’,
];

Return value:
{“success”:true,”isonwa”:true}
connection to whatsapp successful, and number is on whatsapp

{“success”:true,”isonwa”:false}
connection to whatsapp successful, and number is NOT on whatsapp

{“success”:false,”response”:”[WARNING] isonwa request failed! Invalid sender!”}
connection to whatsapp failed, because of invalid sender number

{“success”:false,”response”:”[WARNING] isonwa request failed! Invalid token!”}
connection to whatsapp failed, because of invalid sender token

Powered by BetterDocs