Skip to main content
GET
/
api
/
{session}
/
lids
/
pn
/
{phoneNumber}
Get lid by phone number (chat id)
curl --request GET \
  --url https://{host}/api/{session}/lids/pn/{phoneNumber} \
  --header 'apikey: <api-key>'
{
  "lid": "12345678901234567890",
  "phone": "5511999999999",
  "jid": "5511999999999@s.whatsapp.net"
}

Description

This endpoint returns the LID (Local ID) associated with a specific phone number. LID is a local identifier used by WhatsApp to map contacts efficiently.

URL Parameters

session
string
required
Unique authenticated session ID
phoneNumber
string
required
Phone number (international format, numbers only). Example: 5511999999999
{
  "lid": "12345678901234567890",
  "phone": "5511999999999",
  "jid": "5511999999999@s.whatsapp.net"
}

Status Codes

  • 200 - LID returned successfully
  • 401 - Unauthorized session
  • 404 - Session or phone number not found

Usage Example

curl -X GET https://api.wappfy.com.br/api/my-session/lids/pn/5511999999999

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

phoneNumber
string
required

Response

200 - application/json
lid
string

User's linked ID

Example:

"1111111@lid"

pn
string

User's phone number (chat id)

Example:

"3333333@c.us"

I