Contacts
Check whether a number is on WhatsApp.
curl "https://wp-rapidapi.retentionstack.agency/v1/contacts/check-exists?phone=15551234567&session=SESSION_NAME" \
-H "Authorization: Bearer ak_live_YOUR_ACCOUNT_KEY"With a session token you can leave out session.
The response has numberExists (boolean) and, when found, the chatId to send to. Unlike other endpoints it is not wrapped in success and data:
{ "numberExists": true, "chatId": "15551234567@c.us" }
``` It reports whether the number is registered on WhatsApp, whether or not it is in your contacts.
Use it before messaging a new number. Sending to unregistered numbers wastes quota and is a common spam signal.
<Callout title="Brazilian numbers">
Older Brazilian numbers resolve to a different `chatId` because of the 9-digit migration. Send to the `chatId` that check-exists returns instead of building it yourself.
</Callout>Was this page helpful?