WasenderAPI

API Documentation

WasenderApi WhatsApp API

Get Phone Number from LID

Contacts

GET/api/pn-from-lid/{lid}

Retrieves the real phone number (PN) associated with a Link ID (LID).

Get Phone Number from LID

WhatsApp uses a privacy feature called Link ID (LID) which can sometimes mask a user's real phone number. This endpoint allows you to resolve a LID back to its corresponding full phone number JID (ending in @s.whatsapp.net).

This is useful when you have a LID from an interaction (like a group message) and need to identify the user by their actual phone number.

Parameters

NameTypeRequiredDescription
lidstringYesThe Link ID (LID) of the user, which must end with @lid.

Code Examples

curl -X GET "https://www.wasenderapi.com/api/pn-from-lid/1234567890@lid" 
  -H "Authorization: Bearer YOUR_API_KEY"

Response Examples

{
    "success": true,
    "data": {
        "pn": "[email protected]"
    }
}