GET
/api/lid-from-pn/{pn}Retrieves the Link ID (LID) associated with a real phone number (PN).
Get LID from Phone Number
This endpoint performs the reverse operation of the previous one. Given a user's full phone number JID (ending in @s.whatsapp.net), it retrieves their corresponding Link ID (LID).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pn | string | Yes | The phone number JID of the user, which must end with @s.whatsapp.net. |
Code Examples
curl -X GET "https://www.wasenderapi.com/api/lid-from-pn/[email protected]"
-H "Authorization: Bearer YOUR_API_KEY"Response Examples
{
"success": true,
"data": {
"lid": "1234567890@lid"
}
}