Skip to content

Check Phone Number Exists ​

Check if a phone number is registered on WhatsApp, even if the number is not in your contact list.

TIP

This is useful for validating phone numbers before attempting to send messages.

Usage ​

php
use NjoguAmos\Waha\Facades\Contact;

$result = Contact::exists(phone: '+254722000111');

With Custom Session ​

php
use NjoguAmos\Waha\Facades\Contact;

$result = Contact::exists(
    phone: '+11231231231',
    session: 'my-custom-session'
);

Result ​

The response is an instance of Saloon\Http\Response.

php
$result->json('numberExists'); // true or false
$result->json('chatId');       // "123123123@c.us" or null

Parameters ​

ParameterTypeRequiredDescription
phonestringYesPhone number to check
sessionstring|nullNoWhatsApp session name. Uses default from config if null

Important Notes ​

NOTE

For Brazilian phone numbers, always call this endpoint before sending messages to get the correct chatId, as numbers registered before 2012 require an additional 9th digit.

Engines ​

WEBJSWPPNOWEBGOWS
✅✅✅✅

Released under the MIT License.